aboutsummaryrefslogtreecommitdiffstats
path: root/syscall.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-23 03:00:27 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-23 03:00:27 +0000
commitb0f3f5784c8635fe08d5d8e397f476a0c9ccba66 (patch)
treedeeac47d30b1f0b6f8931a0f3f2b07b6e8f8bae8 /syscall.c
parent3060d4aa1d5586c085aaec108ac6ced094304322 (diff)
downloadandroid_external_rsync-b0f3f5784c8635fe08d5d8e397f476a0c9ccba66.tar.gz
android_external_rsync-b0f3f5784c8635fe08d5d8e397f476a0c9ccba66.tar.bz2
android_external_rsync-b0f3f5784c8635fe08d5d8e397f476a0c9ccba66.zip
open on paths starting with // fails on win32
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/syscall.c b/syscall.c
index d5b567f6..56d88b48 100644
--- a/syscall.c
+++ b/syscall.c
@@ -84,6 +84,9 @@ int do_open(char *pathname, int flags, mode_t mode)
/* for Windows */
flags |= O_BINARY;
#endif
+ /* some systems can't handle a double / */
+ if (pathname[0] == '/' && pathname[1] == '/') pathname++;
+
return open(pathname, flags, mode);
}