From eeb9429de5fed48806d9c6d4575eeddc2149cd6d Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Tue, 25 Aug 2009 09:32:31 +0000 Subject: [PATCH] - be sure that the directory flag is set when we save a path in the cache --- TSRM/tsrm_virtual_cwd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index 45e5e5c9aca..1a5afc47afc 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;