mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
* cygpath.cc (do_pathconv): Only skip \\?\ prefix if it's really
given. Do backslash to slash conversion for mixed paths after handling \\?\ prefix.
This commit is contained in:
parent
ca027229d5
commit
8c3a79bb97
@ -1,3 +1,9 @@
|
||||
2009-04-15 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* cygpath.cc (do_pathconv): Only skip \\?\ prefix if it's really
|
||||
given. Do backslash to slash conversion for mixed paths after
|
||||
handling \\?\ prefix.
|
||||
|
||||
2009-04-13 Dave Korn <dave.korn.cygwin@gmail.com>
|
||||
|
||||
* Makefile.in (dumper.exe): Add -lz to ALL_LDFLAGS.
|
||||
|
@ -744,17 +744,20 @@ do_pathconv (char *filename)
|
||||
buf = get_short_name (buf);
|
||||
if (longname_flag)
|
||||
buf = get_long_name (buf, len);
|
||||
if (strncmp (buf, "\\\\?\\", 4) == 0)
|
||||
{
|
||||
len = 4;
|
||||
if (strncmp (buf + 4, "UNC\\", 4) == 0)
|
||||
len = 6;
|
||||
if (strlen (buf) < MAX_PATH + len)
|
||||
{
|
||||
buf += len;
|
||||
if (len == 6)
|
||||
*buf = '\\';
|
||||
}
|
||||
}
|
||||
if (mixed_flag)
|
||||
buf = get_mixed_name (buf);
|
||||
len = 4;
|
||||
if (strncmp (buf, "\\\\?\\UNC\\", 8) == 0)
|
||||
len = 6;
|
||||
if (strlen (buf) < MAX_PATH + len)
|
||||
{
|
||||
buf += len;
|
||||
if (len == 6)
|
||||
*buf = '\\';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user