X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3420c8e6e06f316e0e7f99eba3f5c957cd0d3106..c48b22c8583f6d6c55c6a6f6001cf4fdcc20aed1:/syscall.c 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); }