UNC path.
(slash_unc_prefix_p): Remove vestige of old //c method for accessing drives.
+2003-09-11 Christopher Faylor <cgf@redhat.com>
+
+ * path.cc (normalize_posix_path): Put check for '//' prefix back to
+ denote a UNC path.
+ (slash_unc_prefix_p): Remove vestige of old //c method for accessing
+ drives.
+
2003-09-11 Christopher Faylor <cgf@redhat.com>
* dir.cc (rmdir): Add more samba workarounds.
syscall_printf ("src %s", src);
- if (isdrive (src))
+ if (isdrive (src) || slash_unc_prefix_p (src))
{
int err = normalize_win32_path (src, dst);
- if (!err && isdrive (dst))
+ if (!err)
for (char *p = dst; (p = strchr (p, '\\')); p++)
*p = '/';
return err;
char *p = NULL;
int ret = (isdirsep (path[0])
&& isdirsep (path[1])
- && isalpha (path[2])
- && path[3] != 0
- && !isdirsep (path[3])
+ && isalnum (path[2])
&& ((p = strpbrk (path + 3, "\\/")) != NULL));
if (!ret || p == NULL)
return ret;