Skip to content

Commit b777280

Browse files
committed
- Symlink resolution fails when target is a DFS path
1 parent db9667d commit b777280

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

TSRM/tsrm_virtual_cwd.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,9 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
811811
\\?\Volume{62d1c3f8-83b9-11de-b108-806e6f6e6963}\foo
812812
*/
813813
if (strncmp(substitutename, "\\??\\Volume{",11) == 0
814-
|| strncmp(substitutename, "\\\\?\\Volume{",11) == 0) {
814+
|| strncmp(substitutename, "\\\\?\\Volume{",11) == 0
815+
|| strncmp(substitutename, "\\??\\UNC\\", 8) == 0
816+
) {
815817
isVolume = TRUE;
816818
substitutename_off = 0;
817819
} else

0 commit comments

Comments
 (0)