You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: path validators refuse paths on a mapped network drive #1107
Limitation of #1036 (the #1000 fix), recorded so it isn't lost.
pkg/security resolves an existing path with GetFinalPathNameByHandle to defeat junction/symlink escapes. For a mapped drive, Z:\data\x resolves to \\?\UNC\server\share\data\x, which normaliseFinalPath (path_resolve_windows.go) turns into \\server\share\data\x. That no longer has the allowed root Z:\… as a prefix, so a legitimate path under a root on a mapped drive is refused as outside it.
Fails closed (refuses, never admits), so it is not a security hole; it only matters if a Windows user configures a root on a mapped drive. Fix direction: resolve the ROOT through the same GetFinalPathNameByHandle call before comparing, so both sides are in \\server\share form, with a Windows test using a subst/mapped drive.
Activity
Restore the #1107 fix; detach the scratch VHD by its long path
Windows: admit paths on a mapped network drive (#1107)