]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: normalize_win32_path: allow drive without trailing backslash
authorKen Brown <kbrown@cornell.edu>
Wed, 15 Jan 2020 15:49:21 +0000 (10:49 -0500)
committerKen Brown <kbrown@cornell.edu>
Fri, 17 Jan 2020 12:37:29 +0000 (07:37 -0500)
commit85aff2830a68ce79a280e5ea31fcf01342d61986
tree92a47a290b5ce30a8592293528b965b722b40612
parent7e6c96d6e1485b52b4243d0cd9699f2063645660
Cygwin: normalize_win32_path: allow drive without trailing backslash

Commit 283cb372, "Cygwin: normalize_win32_path: improve error
checking", required a prefix '\\?\' or '\??\' in the source path to be
followed by 'UNC\' or 'X:\', where X is a drive letter.  That was too
restrictive, since it disallowed the paths '\\?\X: and '\??\X:'.  This
caused problems when a user tried to use the root of a drive as the
Cygwin installation root, as reported here:

  https://cygwin.com/ml/cygwin/2020-01/msg00111.html

Modify the requirement so that '\??\X:' and '\\?\X:' are now allowed
as source paths, without a trailing backslash.
winsup/cygwin/path.cc
winsup/cygwin/release/3.1.3
This page took 0.031317 seconds and 5 git commands to generate.