X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/536b84680b4ab1f29fa456b4fa7b5b16eff4af8f..e0ed4e4087ebeff0b0fe8f3419bcccf84fbd89a9:/syscall.c diff --git a/syscall.c b/syscall.c index c620f607..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 } - - /* for Windows */ - flags |= O_BINARY; - /* 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