From b7772809336c7af9acb4ca90fb34805dbecf7aa7 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 26 Aug 2010 14:23:17 +0000 Subject: [PATCH] - Symlink resolution fails when target is a DFS path --- TSRM/tsrm_virtual_cwd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index d51e01aa3e..1b90d5a99c 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -811,7 +811,9 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i \\?\Volume{62d1c3f8-83b9-11de-b108-806e6f6e6963}\foo */ if (strncmp(substitutename, "\\??\\Volume{",11) == 0 - || strncmp(substitutename, "\\\\?\\Volume{",11) == 0) { + || strncmp(substitutename, "\\\\?\\Volume{",11) == 0 + || strncmp(substitutename, "\\??\\UNC\\", 8) == 0 + ) { isVolume = TRUE; substitutename_off = 0; } else -- 2.40.0