From: Pierre Joye Date: Tue, 25 Aug 2009 09:32:31 +0000 (+0000) Subject: - be sure that the directory flag is set when we save a path in the cache X-Git-Tag: php-5.4.0alpha1~191^2~2759 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29b238f8782dc0650ffe7f7769acd75df20b7e67;p=php - be sure that the directory flag is set when we save a path in the cache --- diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index f40ebead0b..45d5cdf8a8 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -738,6 +738,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i return -1; } } + directory = (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY); if(link_is_dir) { *link_is_dir = directory;