From: Anantha Kesari H Y Date: Wed, 29 Sep 2004 12:35:13 +0000 (+0000) Subject: NetWare don't have uid for a file so modified the php_checkuid to return 1 for NetWAre X-Git-Tag: PRE_NEW_VM_GEN_PATCH~137 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06a4be43a3fbf5b94f9204dee9233bedbd1980ad;p=php NetWare don't have uid for a file so modified the php_checkuid to return 1 for NetWAre --- diff --git a/main/safe_mode.c b/main/safe_mode.c index 0412433b22..d0d351388d 100644 --- a/main/safe_mode.c +++ b/main/safe_mode.c @@ -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()