]> granicus.if.org Git - php/commitdiff
fix lstat() function resolving symlinks
authorAntony Dovgal <tony2001@php.net>
Wed, 30 May 2007 10:50:45 +0000 (10:50 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 30 May 2007 10:50:45 +0000 (10:50 +0000)
patch by Scott MacVicar

TSRM/tsrm_virtual_cwd.c

index e4e120f51726d0eac1d6959516df6bdc6fb298f2..859e044198269f4f712f364770aa9553e14003cf 100644 (file)
@@ -1009,7 +1009,7 @@ CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC)
        int retval;
 
        CWD_STATE_COPY(&new_state, &CWDG(cwd));
-       if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH)) {
+       if (virtual_file_ex(&new_state, path, NULL, CWD_EXPAND)) {
                CWD_STATE_FREE(&new_state);
                return -1;
        }