summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2003-03-30 23:00:51 +0000
committerWayne Davison <wayned@samba.org>2003-03-30 23:00:51 +0000
commite106de49c83ec70eb8c8bf4c92fd493757847e04 (patch)
tree550741badfa5d8d12346f19047a2170ef311339d /syscall.c
parentafbcc8f21649b825b6410bd854026fad7240768b (diff)
downloadrsync-e106de49c83ec70eb8c8bf4c92fd493757847e04.tar.gz
rsync-e106de49c83ec70eb8c8bf4c92fd493757847e04.tar.bz2
rsync-e106de49c83ec70eb8c8bf4c92fd493757847e04.zip
Tweaked the O_BINARY code to the latest idiom.
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/syscall.c b/syscall.c
index 58f1f677..dbde033b 100644
--- a/syscall.c
+++ b/syscall.c
@@ -85,14 +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++;
- return open(pathname, flags, mode);
+ return open(pathname, flags | O_BINARY, mode);
}
#if HAVE_CHMOD