]> granicus.if.org Git - php/commitdiff
- use php_sys_lstat
authorPierre Joye <pajoye@php.net>
Mon, 13 Sep 2010 10:27:55 +0000 (10:27 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 13 Sep 2010 10:27:55 +0000 (10:27 +0000)
TSRM/tsrm_virtual_cwd.c
win32/glob.c

index dd882e623637af4b3112c41e051e5beda5b89088..9f71d5015185fa559fc86f5f8f9c7f113968f4a5 100644 (file)
@@ -993,7 +993,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
                tmp = tsrm_do_alloca(len+1, use_heap);
                memcpy(tmp, path, len+1);
 #else
-               if (save && lstat(path, &st) < 0) {
+               if (save && php_sys_lstat(path, &st) < 0) {
                        if (use_realpath == CWD_REALPATH) {
                                /* file not found */
                                return -1;
index 0fcd63b3d36331c3602410026d99561a723ca93b..fb8e71a21ec5fd25ed97663eb54846ad6c6e237a 100644 (file)
@@ -859,7 +859,7 @@ g_lstat(fn, sb, pglob)
                return(-1);
        if (pglob->gl_flags & GLOB_ALTDIRFUNC)
                return((*pglob->gl_lstat)(buf, sb));
-       return(lstat(buf, sb));
+       return(php_sys_lstat(buf, sb));
 }
 
 static int