Commit b0f3f578 authored by Andrew Tridgell's avatar Andrew Tridgell

open on paths starting with // fails on win32

parent 3060d4aa
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment