aboutsummaryrefslogtreecommitdiffstats
path: root/syscall.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-02-17 22:49:19 +0000
committerWayne Davison <wayned@samba.org>2004-02-17 22:49:19 +0000
commit4068d8617dd301f7e1590b0419c9d2e24103b1b4 (patch)
treee94f2e380d517f170aa9d4b0b9e081e95b50ab2a /syscall.c
parent421c2a24485f78a1f2f549f5f19e358148a77b78 (diff)
downloadandroid_external_rsync-4068d8617dd301f7e1590b0419c9d2e24103b1b4.tar.gz
android_external_rsync-4068d8617dd301f7e1590b0419c9d2e24103b1b4.tar.bz2
android_external_rsync-4068d8617dd301f7e1590b0419c9d2e24103b1b4.zip
We no longer munge a double-leading slash in do_open() because we
shouldn't generate a path with a double-leading slash anymore.
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/syscall.c b/syscall.c
index dbde033b..391846b7 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);
}