cvs: php4 /ext/standard filestat.c
| From: | Derick Rethans | Date: | Sun, 05 Jan 2003 00:56:17 +0000 |
| Subject: | cvs: php4 /ext/standard filestat.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17629@lists.php.net to get a copy of this message | ||
derick Sat Jan 4 19:56:17 2003 EDT
Modified files:
/php4/ext/standard filestat.c
Log:
- Fix some of the netware crap
Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.116 php4/ext/standard/filestat.c:1.117
--- php4/ext/standard/filestat.c:1.116 Sat Jan 4 18:55:57 2003
+++ php4/ext/standard/filestat.c Sat Jan 4 19:56:17 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filestat.c,v 1.116 2003/01/04 23:55:57 derick Exp $ */
+/* $Id: filestat.c,v 1.117 2003/01/05 00:56:17 derick Exp $ */
#include "php.h"
#include "safe_mode.h"
@@ -710,25 +710,25 @@
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));