summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-01-09 22:33:43 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-01-09 22:33:43 +0000
commit9b560970f8fde79995d1570d41635b4df4b5e858 (patch)
tree4755b4bbbd68c9ede2a517973701ee97ea3ea8f9
parent4d789b593fafde0968b3a7cc282661018caf7594 (diff)
downloadphp-git-9b560970f8fde79995d1570d41635b4df4b5e858.tar.gz
Fixed compiler warnings.
-rw-r--r--main/safe_mode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/safe_mode.c b/main/safe_mode.c
index c778b71a92..ed09c9f83e 100644
--- a/main/safe_mode.c
+++ b/main/safe_mode.c
@@ -85,12 +85,12 @@ PHPAPI int php_checkuid_ex(const char *filename, char *fopen_mode, int mode, int
ret = VCWD_STAT(path, &sb);
if (ret < 0) {
if (mode == CHECKUID_DISALLOW_FILE_NOT_EXISTS) {
- if (flags & CHECKUID_NO_ERRORS == 0) {
+ if ((flags & CHECKUID_NO_ERRORS) == 0) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to access %s", filename);
}
return 0;
} else if (mode == CHECKUID_ALLOW_FILE_NOT_EXISTS) {
- if (flags & CHECKUID_NO_ERRORS == 0) {
+ if ((flags & CHECKUID_NO_ERRORS) == 0) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to access %s", filename);
}
return 1;
@@ -133,7 +133,7 @@ PHPAPI int php_checkuid_ex(const char *filename, char *fopen_mode, int mode, int
/* check directory */
ret = VCWD_STAT(path, &sb);
if (ret < 0) {
- if (flags & CHECKUID_NO_ERRORS == 0) {
+ if ((flags & CHECKUID_NO_ERRORS) == 0) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to access %s", filename);
}
return 0;
@@ -169,7 +169,7 @@ PHPAPI int php_checkuid_ex(const char *filename, char *fopen_mode, int mode, int
filename = path;
}
- if (flags & CHECKUID_NO_ERRORS == 0) {
+ if ((flags & CHECKUID_NO_ERRORS) == 0) {
if (PG(safe_mode_gid)) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "SAFE MODE Restriction in effect. The script whose uid/gid is %ld/%ld is not allowed to access %s owned by uid/gid %ld/%ld", php_getuid(), php_getgid(), filename, uid, gid);
} else {