From: Martin Pool Date: Mon, 14 Jan 2002 00:16:51 +0000 (+0000) Subject: Fix for X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/25f2cb3d6b7537149b5645ed13cdd9785fa225ab?hp=154f9a3acae2694db5593ccd28f3e556744babbe 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 }