]> granicus.if.org Git - php/commitdiff
yet another appempt to fix Windows bug
authorAntony Dovgal <tony2001@php.net>
Sat, 5 Aug 2006 13:17:32 +0000 (13:17 +0000)
committerAntony Dovgal <tony2001@php.net>
Sat, 5 Aug 2006 13:17:32 +0000 (13:17 +0000)
thanks Rob for the patch

TSRM/tsrm_virtual_cwd.c

index 59a6b81d1deb861e2a52fa350632ca9a9a65ff8d..0b333ede04daa39decc3da17a48b1bb99757fcd0 100644 (file)
@@ -720,7 +720,9 @@ CWD_API int virtual_access(const char *pathname, int mode TSRMLS_DC)
        int ret;
        
        CWD_STATE_COPY(&new_state, &CWDG(cwd));
-       virtual_file_ex(&new_state, pathname, NULL, 1);
+       if (virtual_file_ex(&new_state, pathname, NULL, 1)) {
+               return -1;
+       }
 
 #if defined(TSRM_WIN32)
        ret = tsrm_win32_access(new_state.cwd, mode);