]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: path handling: never substitute virtual drive with target path
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 12 Dec 2022 20:56:14 +0000 (21:56 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 12 Dec 2022 20:56:14 +0000 (21:56 +0100)
commit5ba5e09b9d39feaedc9be0dcd88d085b256c5d40
tree920f0e84a8f7efc1e6af9b2999032c71f804d5ab
parent45794e0d66866d928349134ed3b91aeec5477009
Cygwin: path handling: never substitute virtual drive with target path

Move the drive substitution code after the call to
GetFinalPathNameByHandleW into a local function revert_virtual_drive
and add code to handle non-remote virtual drives, i. e., those
created with the subst command.  (Try to) make sure that virtual
drives are never treated like symlinks.

Fixes: 19d59ce75d53 ("Cygwin: path_conv: Rework handling native symlinks as inner path components")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/path.cc
This page took 0.029069 seconds and 5 git commands to generate.