diff options
| author | Andi Gutmans <andi@php.net> | 2001-04-30 12:45:02 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2001-04-30 12:45:02 +0000 |
| commit | 4c823e8a895632382de841055fa961ec760d086c (patch) | |
| tree | d319b78485393d28ee56b4302803bc5155558ba6 /main/safe_mode.c | |
| parent | 96330d36bc1146c87a14c7def528e79a4866bee7 (diff) | |
| download | php-git-4c823e8a895632382de841055fa961ec760d086c.tar.gz | |
- Change macros from V_ to VCWD_ because of AIX name clash
Diffstat (limited to 'main/safe_mode.c')
| -rw-r--r-- | main/safe_mode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/safe_mode.c b/main/safe_mode.c index cd828a71e5..0421ad2c7d 100644 --- a/main/safe_mode.c +++ b/main/safe_mode.c @@ -70,7 +70,7 @@ PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode) } if (mode != CHECKUID_ALLOW_ONLY_DIR) { - ret = V_STAT(filename, &sb); + ret = VCWD_STAT(filename, &sb); if (ret < 0) { if (mode == CHECKUID_DISALLOW_FILE_NOT_EXISTS) { php_error(E_WARNING, "Unable to access %s", filename); @@ -98,7 +98,7 @@ PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode) if (s) { *s='\0'; - ret = V_STAT(filename, &sb); + ret = VCWD_STAT(filename, &sb); *s='/'; if (ret < 0) { php_error(E_WARNING, "Unable to access %s", filename); @@ -107,11 +107,11 @@ PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode) duid = sb.st_uid; } else { char cwd[MAXPATHLEN]; - if (!V_GETCWD(cwd, MAXPATHLEN)) { + if (!VCWD_GETCWD(cwd, MAXPATHLEN)) { php_error(E_WARNING, "Unable to access current working directory"); return 0; } - ret = V_STAT(cwd, &sb); + ret = VCWD_STAT(cwd, &sb); if (ret < 0) { php_error(E_WARNING, "Unable to access %s", cwd); return 0; |
