summaryrefslogtreecommitdiff
path: root/main/safe_mode.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-04-20 16:38:08 +0000
committerAndi Gutmans <andi@php.net>2000-04-20 16:38:08 +0000
commite40268d07c9f0cae3f43b80e2c795a2b35253af5 (patch)
treeb5c4ed2f87664876e3012642e44f2edfd9e4e1f5 /main/safe_mode.c
parentba37ae2c0b8048d2a43c8a3008f539c12a464aa5 (diff)
downloadphp-git-e40268d07c9f0cae3f43b80e2c795a2b35253af5.tar.gz
- Add missing V_STAT()
Diffstat (limited to 'main/safe_mode.c')
-rw-r--r--main/safe_mode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/safe_mode.c b/main/safe_mode.c
index ac33ba88db..4f4344291c 100644
--- a/main/safe_mode.c
+++ b/main/safe_mode.c
@@ -57,7 +57,7 @@ PHPAPI int php_checkuid(const char *fn, int mode) {
}
if (mode<3) {
- ret = stat(fn,&sb);
+ ret = V_STAT(fn,&sb);
if (ret<0 && mode < 2) {
php_error(E_WARNING,"Unable to access %s",fn);
return(mode);
@@ -79,7 +79,7 @@ PHPAPI int php_checkuid(const char *fn, int mode) {
if (s) {
*s='\0';
- ret = stat(fn,&sb);
+ ret = V_STAT(fn,&sb);
*s='/';
if (ret<0) {
php_error(E_WARNING, "Unable to access %s",fn);
@@ -92,7 +92,7 @@ PHPAPI int php_checkuid(const char *fn, int mode) {
php_error(E_WARNING, "Unable to access current working directory");
return(0);
}
- ret = stat(s,&sb);
+ ret = V_STAT(s,&sb);
efree(s);
if (ret<0) {
php_error(E_WARNING, "Unable to access %s",s);