Skip to content

Commit

Permalink
fix values for gid and uid
Browse files Browse the repository at this point in the history
As stated by MSDN, these fields are always set to zero
  • Loading branch information
weltling committed Feb 11, 2015
1 parent e6bf9b4 commit 61d85ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sapi/apache2handler/sapi_apache2.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,13 @@ php_apache_sapi_get_stat(void)
{
php_struct *ctx = SG(server_context);

#ifdef PHP_WIN32
ctx->finfo.st_uid = 0;
ctx->finfo.st_gid = 0;
#else
ctx->finfo.st_uid = ctx->r->finfo.user;
ctx->finfo.st_gid = ctx->r->finfo.group;
#endif
ctx->finfo.st_dev = ctx->r->finfo.device;
ctx->finfo.st_ino = ctx->r->finfo.inode;
#if defined(NETWARE) && defined(CLIB_STAT_PATCH)
Expand Down

0 comments on commit 61d85ce

Please sign in to comment.