git.samba.org
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Open config files in text mode when O_TEXT is defined. This helps on
[rsync.git]
/
syscall.c
diff --git
a/syscall.c
b/syscall.c
index 58f1f677da70c9d6a7bee292e162a2f8de6ac7ea..c620f6075a2bb7bdb88a06b1c16c9a95e9e31c59 100644
(file)
--- a/
syscall.c
+++ b/
syscall.c
@@
-85,10
+85,10
@@
int do_open(char *pathname, int flags, mode_t mode)
if (dry_run) return -1;
CHECK_RO
}
-#ifdef O_BINARY
+
/* for Windows */
flags |= O_BINARY;
-#endif
+
/* some systems can't handle a double / */
if (pathname[0] == '/' && pathname[1] == '/') pathname++;