Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3060d4a
)
open on paths starting with // fails on win32
author
Andrew Tridgell
<tridge@samba.org>
Sun, 23 Jan 2000 03:00:27 +0000
(
03:00
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Sun, 23 Jan 2000 03:00:27 +0000
(
03:00
+0000)
syscall.c
patch
|
blob
|
blame
|
history
diff --git
a/syscall.c
b/syscall.c
index
d5b567f
..
56d88b4
100644
(file)
--- 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);
}