search for: binmode

Displaying 20 results from an estimated 49 matches for "binmode".

2002 May 07
0
rsync on cygwin: can't access mapped network drive remotely
...U: \\granular\users Microsoft Windows Network OK X: \\tick\thrakkorzog Microsoft Windows Network OK Y: \\tick\chairface Microsoft Windows Network The command completed successfully. tick:~/foo$ mount c:\unix\bin on /usr/bin type system (binmode) c:\unix\lib on /usr/lib type system (binmode) c:\unix on / type system (binmode) c: on /c type system (binmode) f: on /f type system (binmode) h: on /h type system (binmode) m: on /m type system (binmode) u: on /u type system (binmode) y: on /y type system (binmode) x: on /x type...
2002 Oct 17
0
Upgraded to latest cygwin this morning, and ssh refuses to enter binmode. Help! (fwd)
...ygwin or involved in Cygwin help this person please? - Ben ---------- Forwarded message ---------- Date: Thu, 17 Oct 2002 17:58:45 -0400 From: Andrew Greene <agreene at pageflexinc.com> To: openssh at openssh.com Subject: Upgraded to latest cygwin this morning, and ssh refuses to enter binmode. Help! I upgraded to the latest cygwin this morning (not sure when I last did) and ssh is suddenly replacing LF with CRLF. (I also started running sshd as a service; I don't know if that's relevant.) This replacement prevents Unison from working, along with who knows what else (I'm a...
2006 Jan 14
1
BUG: HTTP body content get parsed in PUT call
...te that I have to put the body content into env_table[''RAW_PUT_DATA''] instead of env_table[''RAW_POST_DATA'']. The latter will have the same problem. class CGI #:nodoc: module QueryExtension private def setup_raw_put_data stdinput.binmode if stdinput.respond_to?(:binmode) content = stdinput.read(Integer(env_table[''CONTENT_LENGTH''])) || '''' env_table[''RAW_PUT_DATA''] = content.freeze end def read_query_params(method) case method...
2001 Apr 02
1
[PATCH]: scp could hang in Cygwin
Hi, attached is a patch which solves the following problem: Sometimes scp could hang in Cygwin when used as remote end using the -t option. This is due to a binmode/textmode problem which could be raised by the login shell which is used by the user and it's setting of textmode on stdin. The patch solves that problem by explicitly setting binmode on stdin. Besides solving the hanging problem, the patch results in a way faster copy process. Corinna Index:...
2003 Jun 28
2
oggenc and Encoding with VBR
..., dd, :wq I'm on Debian Linux, and I downloaded and installed libao-0.8.3, libogg-1.0, libvorbis-1.0, vorbis-tools-1.0 from the website today. The perl script below will also fix ogg files with this error #!/usr/local/bin/perl -w use strict; open(IN, $ARGV[0]) or die("$!\n"); binmode(IN); open(OUT, ">$ARGV[0].tmp") or die("$!\n"); binmode(OUT); while(<IN>) { next if ($_ =~ /Encoding with VBR/); print(OUT $_); } close(OUT) or die("$!\n"); close(IN) or die("$!\n"); I dunno if this is a bug, but it was darn confusing....
2006 May 30
2
Mongrel Bug
Mongrel''s tempfile generation on win32 is broken meaning large files can''t be uploaded. On line 198 of mongrel.rb (0.13.3) HttpRequest#initialize the tempfile function is called:       if clen &gt; Const::MAX_BODY         @body = Tempfile.new(self.class.name)         @body.binmode       else Unfortunately this also includes the module name as the example shows: Mongrel::HttpRequest2496.9 Win32 doesn''t allow the '':'' character in file names so this fails. I just solved the problem by replacing self.class.name with self.class.name.split('...
2010 Dec 30
2
remove newlines / perl /concise example
...ilename\": $!"; # Open output file for writing only. my $outfilename = "/tmp/newline-test-out"; open (my $out, ">", "$outfilename") or die "Can\'t open $outfilename for writing. $!"; # Comment out either, both, or neither of the below "binmode" == no joy #binmode $in; binmode $out; while (<$in>) { # Neither of the two commands below works as expected. chomp; # remove trailing newline. # s/\n/ /; # replace newline with space print $out $in; } # Close input file. close $in or die "Error closing $in: $!"; # Clo...
2002 Nov 29
2
Rsync service on Win2k?
...fig=/etc/rsyncd.conf --daemon" installs the service; rsyncd.exe --config=/etc/rsyncd.conf --daemon runs it from a bash shell, but I can't seem to start it either using cygrunsrv -S "rsyncd", or from the Services manager. I've also tried with --no-detach and -e CYGWIN='binmode tty ntsec' on the cygrunsrv command line, as described at http://acd.ucar.edu/~fredrick/win2k/rsync/ Lastly, I tried getting it running via srvany.exe (from the Win2k resource kit) and srvinstw, with even less intelligible output. Any help would be very much appreciated. Cheers, -John cy...
2007 Feb 15
1
convert to binary to decimal
...ert a logical vector to a (decimal) integer. Example: a=c(TRUE, FALSE, TRUE) (binary number 101) the function we are looking for should return dec2bin(a)=5 Is there a package for such a function or is it even implemented in the base package? We found the hexmode and octmode command, but not a binmode. We know how to program it ourselves however we are looking for a computationally efficient algorithm. Martin and Stefan
2001 Jun 13
0
[PATCH]: Add features to Cygwin's ssh-host-config script
...hen + echo + echo "Which value should the environment variable CYGWIN have when" + echo "sshd starts? It's recommended to set at least \"ntsec\" to be" + echo "able to change user context without password." + echo -n "Default is \"binmode ntsec tty\". CYGWIN=" + read _cygwin + [ -z "${_cygwin}" ] && _cygwin="binmode ntsec tty" + if cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a -D -e "CYGWIN=${_cygwin}" + then + chown system /etc/ssh* + echo +...
2003 Jun 27
5
Cygwin Rsync 2.5.6 over SSH hangs on Win2k->Win2k
...00a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd FAT 1Mb 2% CP UN c: hd NTFS 4094Mb 54% CP CS UN PA FC d: hd NTFS 13225Mb 54% CP CS UN PA FC e: cd N/A N/A . /cygdrive user binmode,cygdrive C:/cygwin / system binmode C:/cygwin/bin /usr/bin system binmode C:/cygwin/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Found: C:\cygwin\bin\awk.exe Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cp....
2002 Dec 27
1
Syslinux 2.00 build problems on redhat 8.0
I apologize if this has already been covered, I did a half-hearted search of the mail archives but couldn't find anything, although I did find a couple of posts elsewhere of people having similar trouble with ppmtolss16. I'm having a few build problems on redhat 8.0, the first failure in the build is a fatal error from findpatch.pl early in the build. Bumbling through that problem there
2017 Apr 10
3
Patch: Fix isohybrid.c tool under Windows platforms
Hi all, As part of a bigger effort to port the ISOLINUX hybrid mode to ReactOS, I've encountered a bug in isohybrid under Windows platforms. Attached comes a patch to fix it. Precisely, if isohybrid currently finds a 0x0A (LF) byte in the MBR code (which exists in the strings), it adds a 0x0D (CR) before, thereby shifting the MBR bytes to the right and making it invalid. This can be fixed by
2006 Mar 14
5
Apache2 + FastCGI + SSL: File upload fails with HTTPS
...d Rails 1.0.0. Here''s the HEAD from cgi.rb read_multipart function: def read_multipart(boundary, content_length) params = Hash.new([]) boundary = "--" + boundary buf = "" bufsize = 10 * 1024 # start multipart/form-data stdinput.binmode if defined? stdinput.binmode boundary_size = boundary.size + EOL.size content_length -= boundary_size status = stdinput.read(boundary_size) if nil == status raise EOFError, "no content body" elsif boundary + EOL != status raise EOFError, &quot...
2000 Aug 08
1
[PATCH] Updated patch to Cygwin port of 2.1.1p4
I had to update the Cygwin port for two reasons: - scp could fail because of another textmode/binmode problem. - Privileged ports are not privileged on Windows and there's no coherence between privileged user and uid 0. So I send the complete patch again with the above changes. ChangeLog: ========== - Makefile.in: Changed to support $EXEEXT transparently. Added `cygwin_util.o' to th...
2017 Apr 17
2
Patch: Fix isohybrid.c tool under Windows platforms
...y this. Is there anything that can be done in order to reduce such chances of miscalculation and/or unwanted insertion of (CR) characters? > > The fopen() call for reading external MBR code (option -m) already has "b". > > The old perl code contains a call to function binmode, which does about > the same as C fopen(3) with "b" in the mode string. So, is there any reason not to apply the suggested patch? Any potential compatibility issues? Backward compatibility between different versions of isohybrid and isolinux.bin? Anything? > > > Have a...
2003 May 30
3
Rsync / SSH / Cygwin .. permission problems..
I am attempting to use rsync to "mirror" data between several windows 2000 and windows XP systems. I am a UNIX person by nature, so decided the easiest way to go about doing this would be to use Cygwin with cron and ssh running as services, then run the rsync connection nightly through cron. Cygwin is installed on both systems and works perfectly. OpenSSH is installed and running,
2006 Oct 09
1
About sftp-server root path
Hi, I saw in archive that some people made a patch to sftp-server, and that patch sets a root path. I'd like to know if there's an ideia to apply that patch in main tree of openssh? With the use of SSHFS [wich uses sftp-server], it would be interesting to have someting like that, because as we have netboot workstations, the access to devices [such as, floppy, cdrom and usb data] are
2008 Mar 10
2
The server is configured to refuse --iconv
...:\\cwRsync" "StdOut"="C:\\cwRsync\\rsyncd-stdin.log" "StdErr"="C:\\cwRsync\\rsyncd-stderr.log" "Shutdown"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RsyncServer\Parameters\Environment] "CYGWIN"="nontsec binmode" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RsyncServer\Enum] "0"="Root\\LEGACY_RSYNCSERVER\\0000" "Count"=dword:00000001 "NextInstance"=dword:00000001 -------------------------------------------------------------------- rsyncd.conf is: ---...
2001 Jul 11
0
[PATCH]: Cygwin: Changes to cygwin contrib area
...hen + echo + echo "Which value should the environment variable CYGWIN have when" + echo "sshd starts? It's recommended to set at least \"ntsec\" to be" + echo "able to change user context without password." + echo -n "Default is \"binmode ntsec tty\". CYGWIN=" + read _cygwin + [ -z "${_cygwin}" ] && _cygwin="binmode ntsec tty" + if cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a -D -e "CYGWIN=${_cygwin}" + then + chown system /etc/ssh* + echo +...