diff options
| author | David Dykstra <dwd@samba.org> | 2003-01-26 03:46:54 +0000 |
|---|---|---|
| committer | David Dykstra <dwd@samba.org> | 2003-01-26 03:46:54 +0000 |
| commit | 536b84680b4ab1f29fa456b4fa7b5b16eff4af8f (patch) | |
| tree | 1036c57d6c38d596ccb9b6c842797c3d4fed3bd5 /syscall.c | |
| parent | 7508b795bf32de44aa550500d56b3935df5c33a7 (diff) | |
| download | android_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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++; |
