]> granicus.if.org Git - php/commitdiff
As NetWare LibC don't have the implementation of chown and chgrp there is no point...
authorAnantha Kesari H Y <hyanantha@php.net>
Tue, 19 Oct 2004 08:21:24 +0000 (08:21 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Tue, 19 Oct 2004 08:21:24 +0000 (08:21 +0000)
ext/standard/filestat.c

index c77e3dc68db2c3d220fdfa10dec02aae53a6b7a9..c15f5d35f8c18910097d5a47c51fc6f2be569f46 100644 (file)
@@ -323,9 +323,10 @@ PHP_FUNCTION(disk_free_space)
 
 /* {{{ proto bool chgrp(string filename, mixed group)
    Change file group */
+#ifndef NETWARE
 PHP_FUNCTION(chgrp)
 {
-#if !defined(WINDOWS) && !defined(NETWARE)  /* I guess 'chgrp' won't be available on NetWare */
+#if !defined(WINDOWS)
        pval **filename, **group;
        gid_t gid;
        struct group *gr=NULL;
@@ -367,13 +368,15 @@ PHP_FUNCTION(chgrp)
        RETURN_FALSE;
 #endif
 }
+#endif
 /* }}} */
 
 /* {{{ proto bool chown (string filename, mixed user)
    Change file owner */
+#ifndef NETWARE
 PHP_FUNCTION(chown)
 {
-#if !defined(WINDOWS) && !defined(NETWARE)  /* I guess 'chown' won't be available on NetWare */
+#if !defined(WINDOWS)
        pval **filename, **user;
        int ret;
        uid_t uid;
@@ -413,6 +416,7 @@ PHP_FUNCTION(chown)
 #endif
        RETURN_TRUE;
 }
+#endif
 /* }}} */
 
 /* {{{ proto bool chmod(string filename, int mode)