diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index dd7048486..637c32348 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -3495,14 +3495,9 @@ restart: subst X: C:\foo\bar - 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. */ + Treat it as a normal file. */ if (upath.Length == 14) /* \??\X:\ */ - { - fileattr &= ~FILE_ATTRIBUTE_DIRECTORY; - path_flags |= PATH_SYMLINK; - } + goto file_not_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. */