cvs: php-src /main safe_mode.c
| From: | Anantha Kesari H Y | Date: | Wed, 29 Sep 2004 12:35:14 +0000 |
| Subject: | cvs: php-src /main safe_mode.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28840@lists.php.net to get a copy of this message | ||
hyanantha Wed Sep 29 08:35:14 2004 EDT
Modified files:
/php-src/main safe_mode.c
Log:
NetWare don't have uid for a file so modified the php_checkuid to return 1 for NetWAre
http://cvs.php.net/diff.php/php-src/main/safe_mode.c?r1=1.59&r2=1.60&ty=u
Index: php-src/main/safe_mode.c
diff -u php-src/main/safe_mode.c:1.59 php-src/main/safe_mode.c:1.60
--- php-src/main/safe_mode.c:1.59 Mon Jul 19 03:19:48 2004
+++ php-src/main/safe_mode.c Wed Sep 29 08:35:13 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: safe_mode.c,v 1.59 2004/07/19 07:19:48 andi Exp $ */
+/* $Id: safe_mode.c,v 1.60 2004/09/29 12:35:13 hyanantha Exp $ */
#include "php.h"
@@ -187,7 +187,12 @@
}
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()