From: Andrew Tridgell Date: Sun, 23 Jan 2000 03:00:27 +0000 (+0000) Subject: open on paths starting with // fails on win32 X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/b0f3f5784c8635fe08d5d8e397f476a0c9ccba66 open on paths starting with // fails on win32 --- 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); }