Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
154f9a3
)
Fix for <http://rsync.samba.org/cgi-bin/rsync/incoming?id=3750>
author
Martin Pool
<mbp@samba.org>
Mon, 14 Jan 2002 00:16:51 +0000
(
00:16
+0000)
committer
Martin Pool
<mbp@samba.org>
Mon, 14 Jan 2002 00:16:51 +0000
(
00:16
+0000)
temp files must be opened through do_open so that binary modes is used
on cygwin. (Chris Boucher)
syscall.c
patch
|
blob
|
blame
|
history
diff --git
a/syscall.c
b/syscall.c
index
a56eb79
..
dbac7dc
100644
(file)
--- 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
}