]> granicus.if.org Git - php/commitdiff
- be sure that the directory flag is set when we save a path in the cache
authorPierre Joye <pajoye@php.net>
Tue, 25 Aug 2009 09:32:31 +0000 (09:32 +0000)
committerPierre Joye <pajoye@php.net>
Tue, 25 Aug 2009 09:32:31 +0000 (09:32 +0000)
TSRM/tsrm_virtual_cwd.c

index f40ebead0ba2b916c5c466f99f49203ba06dec5b..45d5cdf8a83f1ebb0988749a7baab99435486a53 100644 (file)
@@ -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;