From: Martin Pool Date: Mon, 14 Jan 2002 00:16:51 +0000 (+0000) Subject: Fix for X-Git-Tag: v2.5.2pre1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25f2cb3d6b7537149b5645ed13cdd9785fa225ab;p=thirdparty%2Frsync.git Fix for temp files must be opened through do_open so that binary modes is used on cygwin. (Chris Boucher) --- diff --git a/syscall.c b/syscall.c index a56eb793..dbac7dc9 100644 --- a/syscall.c +++ b/syscall.c @@ -132,7 +132,7 @@ int do_mkstemp(char *template, mode_t perms) } #else if (!mktemp(template)) return -1; - return open(template, O_RDWR|O_EXCL|O_CREAT, perms); + return do_open(template, O_RDWR|O_EXCL|O_CREAT, perms); #endif }