* The gid should also match.

This commit is contained in:
Eelco Dolstra 2004-08-20 15:47:58 +00:00
parent 1c90fabccc
commit 8f58733ef1
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ void switchToNixUser()
#if SETUID_HACK
/* Don't do anything if this is not a setuid binary. */
if (getuid() == geteuid()) return;
if (getuid() == geteuid() && getgid() == getegid()) return;
/* Here we set the uid and gid to the Nix user and group,
respectively, IF the current (real) user is a member of the Nix