patch for 2.5.1 on CygWin

Lapo Luchini lapo at lapo.it
Mon Jan 14 08:08:50 EST 2002


As noted by Chris Boucher in bug 3750 one open missed the ifdef to add
"binary" to the win32 compile.

http://rsync.samba.org/cgi-bin/rsync/incoming?id=3750;user=guest;selectid=3750

diff -Nrup rsync-2.5.1/syscall.c rsync-2.5.1-orig/syscall.c
--- rsync-2.5.1/syscall.c Sun Jan 13 20:57:18 2002
+++ rsync-2.5.1-orig/syscall.c Fri Nov 30 00:21:09 2001
@@ -132,7 +132,7 @@ int do_mkstemp(char *template, mode_t pe
  }
 #else
  if (!mktemp(template)) return -1;
- return do_open(template, O_RDWR|O_EXCL|O_CREAT, perms);
+ return open(template, O_RDWR|O_EXCL|O_CREAT, perms);
 #endif
 }

--
Lapo 'Raist' Luchini
lapo at lapo.it (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)






More information about the rsync mailing list