From: Wayne Davison Date: Tue, 17 Feb 2004 22:49:19 +0000 (+0000) Subject: We no longer munge a double-leading slash in do_open() because we X-Git-Tag: v2.6.1pre1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4068d8617dd301f7e1590b0419c9d2e24103b1b4;p=thirdparty%2Frsync.git We no longer munge a double-leading slash in do_open() because we shouldn't generate a path with a double-leading slash anymore. --- diff --git a/syscall.c b/syscall.c index dbde033b3..391846b7a 100644 --- a/syscall.c +++ b/syscall.c @@ -85,8 +85,6 @@ int do_open(char *pathname, int flags, mode_t mode) if (dry_run) return -1; CHECK_RO } - /* some systems can't handle a double / */ - if (pathname[0] == '/' && pathname[1] == '/') pathname++; return open(pathname, flags | O_BINARY, mode); }