summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2010-09-13 10:27:55 +0000
committerPierre Joye <pajoye@php.net>2010-09-13 10:27:55 +0000
commit8a18e0b71678e692c8e20afc0610ff55d0c53b19 (patch)
tree1bd8253a5aaaedabff388c1a0133502495c75925
parentd5ca12b03ec192e2a9155c8b5c50da375f9058cf (diff)
downloadphp-git-8a18e0b71678e692c8e20afc0610ff55d0c53b19.tar.gz
- use php_sys_lstat
-rw-r--r--TSRM/tsrm_virtual_cwd.c2
-rw-r--r--win32/glob.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c
index dd882e6236..9f71d50151 100644
--- a/TSRM/tsrm_virtual_cwd.c
+++ b/TSRM/tsrm_virtual_cwd.c
@@ -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;
diff --git a/win32/glob.c b/win32/glob.c
index 0fcd63b3d3..fb8e71a21e 100644
--- a/win32/glob.c
+++ b/win32/glob.c
@@ -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