Skip to content

Commit

Permalink
As NetWare LibC don't have the implementation of chown and chgrp ther…
Browse files Browse the repository at this point in the history
…e is no point in exposing this function to PHP
  • Loading branch information
Anantha Kesari H Y committed Oct 19, 2004
1 parent f4f84ac commit 2559c94
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ext/standard/filestat.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -413,6 +416,7 @@ PHP_FUNCTION(chown)
#endif
RETURN_TRUE;
}
#endif
/* }}} */

/* {{{ proto bool chmod(string filename, int mode)
Expand Down

0 comments on commit 2559c94

Please sign in to comment.