This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

rsync text mode problem with fix


Since my last update of my Cygwin installation I noticed that binary files copied from a Linux box were corrupted. The problem appeared to be text mode vs. binary mode. After some investigation I found the problem and I have a fix.

The diff is against the unpacked and prepared rsync-2.6.2-2 release (the latest, as far as I know).


-- Sjoerd Mullender <sjoerd@acm.org>
--- syscall.c~	2004-02-18 23:33:21.000000000 +0100
+++ syscall.c	2004-09-21 10:33:50.442132800 +0200
@@ -164,6 +164,7 @@
 			errno = errno_save;
 			return -1;
 		}
+		setmode(fd, O_BINARY);
 		return fd;
 	}
 #else

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]