From: Derick Rethans Date: Sun, 5 Jan 2003 00:56:17 +0000 (+0000) Subject: - Fix some of the netware crap X-Git-Tag: PHP_5_0_dev_before_13561_fix~460 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b816089fbfd6f3969565ddaad0d85e6c5e0f244d;p=php - Fix some of the netware crap --- diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 66522daff1..67313eff12 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -710,25 +710,25 @@ static void php_stat(const char *filename, php_stat_len filename_length, int typ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Unknown file type (%d)", BG(sb).st_mode&S_IFMT); RETURN_STRING("unknown", 1); case FS_IS_W: - #ifndef NETWARE /* getuid is not available on NetWare */ +#ifndef NETWARE /* getuid is not available on NetWare */ if (getuid()==0) { RETURN_TRUE; /* root */ } - #endif /* NETWARE */ +#endif /* NETWARE */ RETURN_BOOL((BG(sb).st_mode & wmask) != 0); case FS_IS_R: - #ifndef NETWARE /* getuid is not available on NetWare */ +#ifndef NETWARE /* getuid is not available on NetWare */ if (getuid()==0) { RETURN_TRUE; /* root */ } - #endif /* NETWARE */ +#endif /* NETWARE */ RETURN_BOOL((BG(sb).st_mode&rmask)!=0); case FS_IS_X: - #ifndef NETWARE /* getuid is not available on NetWare */ +#ifndef NETWARE /* getuid is not available on NetWare */ if (getuid()==0) { xmask = S_IXROOT; /* root */ } - #endif /* NETWARE */ +#endif /* NETWARE */ RETURN_BOOL((BG(sb).st_mode&xmask)!=0 && !S_ISDIR(BG(sb).st_mode)); case FS_IS_FILE: RETURN_BOOL(S_ISREG(BG(sb).st_mode));