mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-20 04:51:58 -04:00
Tweaked the O_BINARY code to the latest idiom.
This commit is contained in:
1 parent
afbcc8f216
commit
e106de49c8
1 file changed
+1
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user