We no longer munge a double-leading slash in do_open() because we
authorWayne Davison <wayned@samba.org>
Tue, 17 Feb 2004 22:49:19 +0000 (22:49 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 17 Feb 2004 22:49:19 +0000 (22:49 +0000)
shouldn't generate a path with a double-leading slash anymore.

syscall.c

index dbde033b3879726c56e5b7e28fcb4e2cb8427d35..391846b7a3551b943e6f601873cf781ba4fe484a 100644 (file)
--- 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);
 }