Revert "Cygwin: Handle virtual drives as non-symlinks"

This reverts commit c8949d0400.
This commit is contained in:
Jeremy Drake 2021-05-29 13:17:08 -07:00 committed by Corinna Vinschen
parent c01f603df9
commit d0e42141b8
1 changed files with 7 additions and 2 deletions

View File

@ -3505,9 +3505,14 @@ restart:
subst X: C:\foo\bar
Treat it as a normal file. */
Treat it like a symlink. This is required to tell an
lstat caller that the "drive" is actually pointing
somewhere else, thus, it's a symlink in POSIX speak. */
if (upath.Length == 14) /* \??\X:\ */
goto file_not_symlink;
{
fileattr &= ~FILE_ATTRIBUTE_DIRECTORY;
path_flags |= PATH_SYMLINK;
}
/* For final paths differing in inner path components return
length as negative value. This informs path_conv::check
to skip realpath handling on the last path component. */