aboutsummaryrefslogtreecommitdiffstats
path: root/syscall.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-01-14 00:16:51 +0000
committerMartin Pool <mbp@samba.org>2002-01-14 00:16:51 +0000
commit25f2cb3d6b7537149b5645ed13cdd9785fa225ab (patch)
treeb820b78b799c6cdad3bfcd6ab8afc5d1aa81d605 /syscall.c
parent154f9a3acae2694db5593ccd28f3e556744babbe (diff)
downloadandroid_external_rsync-25f2cb3d6b7537149b5645ed13cdd9785fa225ab.tar.gz
android_external_rsync-25f2cb3d6b7537149b5645ed13cdd9785fa225ab.tar.bz2
android_external_rsync-25f2cb3d6b7537149b5645ed13cdd9785fa225ab.zip
Fix for <http://rsync.samba.org/cgi-bin/rsync/incoming?id=3750>
temp files must be opened through do_open so that binary modes is used on cygwin. (Chris Boucher)
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c2
1 files changed, 1 insertions, 1 deletions
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
}