From e40268d07c9f0cae3f43b80e2c795a2b35253af5 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Thu, 20 Apr 2000 16:38:08 +0000 Subject: - Add missing V_STAT() --- main/safe_mode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main/safe_mode.c') 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); -- cgit v1.2.1