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:
3ba2c33
)
Some systems need do_mkstemp() to use setmode() to set O_BINARY.
author
Wayne Davison
<wayned@samba.org>
Fri, 1 Oct 2004 02:34:22 +0000
(
02:34
+0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 1 Oct 2004 02:34:22 +0000
(
02:34
+0000)
syscall.c
patch
|
blob
|
blame
|
history
diff --git
a/syscall.c
b/syscall.c
index
1e18766
..
600d91c
100644
(file)
--- a/
syscall.c
+++ b/
syscall.c
@@
-164,6
+164,9
@@
int do_mkstemp(char *template, mode_t perms)
errno = errno_save;
return -1;
}
errno = errno_save;
return -1;
}
+#if HAVE_SETMODE && O_BINARY
+ setmode(fd, O_BINARY);
+#endif
return fd;
}
#else
return fd;
}
#else