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:
53dd313
)
Always add the O_BINARY flag in do_open if it is defined, for Windows.
author
David Dykstra
<dwd@samba.org>
Tue, 24 Nov 1998 19:10:21 +0000
(19:10 +0000)
committer
David Dykstra
<dwd@samba.org>
Tue, 24 Nov 1998 19:10:21 +0000
(19:10 +0000)
Suggestion from Mart.Laak@hansa.ee
syscall.c
patch
|
blob
|
blame
|
history
diff --git
a/syscall.c
b/syscall.c
index
16d0a96
..
558fe98
100644
(file)
--- a/
syscall.c
+++ b/
syscall.c
@@
-76,6
+76,10
@@
int do_rmdir(char *pathname)
int do_open(char *pathname, int flags, mode_t mode)
{
if (dry_run) return -1;
int do_open(char *pathname, int flags, mode_t mode)
{
if (dry_run) return -1;
+#ifdef O_BINARY
+ /* for Windows */
+ flags |= O_BINARY;
+#endif
CHECK_RO
return open(pathname, flags, mode);
}
CHECK_RO
return open(pathname, flags, mode);
}