aboutsummaryrefslogtreecommitdiffstats
path: root/syscall.c
diff options
context:
space:
mode:
authorDavid Dykstra <dwd@samba.org>2003-01-26 03:46:54 +0000
committerDavid Dykstra <dwd@samba.org>2003-01-26 03:46:54 +0000
commit536b84680b4ab1f29fa456b4fa7b5b16eff4af8f (patch)
tree1036c57d6c38d596ccb9b6c842797c3d4fed3bd5 /syscall.c
parent7508b795bf32de44aa550500d56b3935df5c33a7 (diff)
downloadandroid_external_rsync-536b84680b4ab1f29fa456b4fa7b5b16eff4af8f.tar.gz
android_external_rsync-536b84680b4ab1f29fa456b4fa7b5b16eff4af8f.tar.bz2
android_external_rsync-536b84680b4ab1f29fa456b4fa7b5b16eff4af8f.zip
Open config files in text mode when O_TEXT is defined. This helps on
Cygwin when the config files are on a filesystem that is mounted in binary mode. Patch from Ville Herva.
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/syscall.c b/syscall.c
index 58f1f677..c620f607 100644
--- 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++;