]> granicus.if.org Git - php/commitdiff
NetWare don't have uid for a file so modified the php_checkuid to return 1 for NetWAre
authorAnantha Kesari H Y <hyanantha@php.net>
Wed, 29 Sep 2004 12:35:13 +0000 (12:35 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Wed, 29 Sep 2004 12:35:13 +0000 (12:35 +0000)
main/safe_mode.c

index 0412433b22e9c3210d5364607877be134845b122..d0d351388d3bdad655fc8acaa2d65703321aff99 100644 (file)
@@ -187,7 +187,12 @@ PHPAPI int php_checkuid_ex(const char *filename, char *fopen_mode, int mode, int
 }
 
 PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode) {
+#ifdef NETWARE
+/* NetWare don't have uid*/
+       return 1;
+#else
        return php_checkuid_ex(filename, fopen_mode, mode, 0);
+#endif
 }
 
 PHPAPI char *php_get_current_user()