iliaa           Thu Jan  9 17:33:43 2003 EDT

  Modified files:              
    /php4/main  safe_mode.c 
  Log:
  Fixed compiler warnings.
  
  
Index: php4/main/safe_mode.c
diff -u php4/main/safe_mode.c:1.53 php4/main/safe_mode.c:1.54
--- php4/main/safe_mode.c:1.53  Thu Jan  9 16:57:45 2003
+++ php4/main/safe_mode.c       Thu Jan  9 17:33:43 2003
@@ -15,7 +15,7 @@
    | Author: Rasmus Lerdorf <[EMAIL PROTECTED]>                        |
    +----------------------------------------------------------------------+
  */
-/* $Id: safe_mode.c,v 1.53 2003/01/09 21:57:45 pollita Exp $ */
+/* $Id: safe_mode.c,v 1.54 2003/01/09 22:33:43 iliaa Exp $ */
 
 #include "php.h"
 
@@ -85,12 +85,12 @@
                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 @@
                /* 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 @@
                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 {



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to