forked from lix-project/lix
* The gid should also match.
This commit is contained in:
parent
1c90fabccc
commit
8f58733ef1
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ void switchToNixUser()
|
||||||
#if SETUID_HACK
|
#if SETUID_HACK
|
||||||
|
|
||||||
/* Don't do anything if this is not a setuid binary. */
|
/* 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,
|
/* 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
|
respectively, IF the current (real) user is a member of the Nix
|
||||||
|
|
Loading…
Reference in a new issue