]> granicus.if.org Git - php/commitdiff
MFH: fix lstat() function resolving symlinks
authorAntony Dovgal <tony2001@php.net>
Wed, 30 May 2007 10:50:47 +0000 (10:50 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 30 May 2007 10:50:47 +0000 (10:50 +0000)
TSRM/tsrm_virtual_cwd.c

index e21dc85d06effe13061b4db332dd5d6c005fd041..dc9c895adba61b3491858d7349809ca64c627dbe 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;
        }