From: Pierre Joye Date: Wed, 27 Jan 2010 16:46:43 +0000 (+0000) Subject: - don't go through the reparse code when we have a share or DFS path (should fix... X-Git-Tag: php-5.4.0alpha1~191^2~2023 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76f7c2851e406531d1d99ee31b11b31ccf5385ac;p=php - don't go through the reparse code when we have a share or DFS path (should fix #50542) --- diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index b23cd605e8..1c5ced39f5 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -714,7 +714,9 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i tmp = tsrm_do_alloca(len+1, use_heap); memcpy(tmp, path, len+1); - if(save && (data.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) { + if(save && + !(IS_UNC_PATH(path, len) && len >= 3 && path[2] != '?') && + (data.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) { /* File is a reparse point. Get the target */ HANDLE hLink = NULL; REPARSE_DATA_BUFFER * pbuffer;