diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-08-20 15:47:58 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-08-20 15:47:58 +0000 |
commit | 8f58733ef16bdefe3cdb004bea986b6a0b893331 (patch) | |
tree | 720fa2bfece2807d2a262913c403c2629e235cb5 | |
parent | 1c90fabccc0b859d9a357c96bfbc0c19a4ce17da (diff) | |
download | guix-8f58733ef16bdefe3cdb004bea986b6a0b893331.tar.gz |
* The gid should also match.
-rw-r--r-- | src/libmain/shared.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index e0e9328dd0..7917407bb2 100644 --- a/src/libmain/shared.cc +++ b/src/libmain/shared.cc @@ -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 |