summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-08-25 09:32:31 +0000
committerPierre Joye <pajoye@php.net>2009-08-25 09:32:31 +0000
commiteeb9429de5fed48806d9c6d4575eeddc2149cd6d (patch)
tree6b35e7d9362333db157e08d58e8d10787a0b7948 /TSRM
parent056f0aea307ecd32020e5333d8a2f89222e68b6e (diff)
downloadphp-git-eeb9429de5fed48806d9c6d4575eeddc2149cd6d.tar.gz
- be sure that the directory flag is set when we save a path in the cache
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_virtual_cwd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c
index 45e5e5c9ac..1a5afc47af 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;