Browse Source

NetWare don't have uid for a file so modified the php_checkuid to return 1 for NetWAre

PHP-5.1
Anantha Kesari H Y 22 years ago
parent
commit
06a4be43a3
  1. 5
      main/safe_mode.c

5
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()

Loading…
Cancel
Save