summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-06 12:08:02 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-06 12:08:02 (GMT)
commit11a8187bd16061f097396b0165c32dfc11297a7d (patch)
tree950ddaea8004bd333fa3cc6bad545ae1e600fa1e /process.c
parent42becbddc24ed347d67e479cccfabcc3404b24ae (diff)
* process.c (has_privilege): The gid zero is not a privilege.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.c b/process.c
index 3d1d0cd..c258e5e 100644
--- a/process.c
+++ b/process.c
@@ -3373,7 +3373,7 @@ has_privilege(void)
egid = getegid();
#endif
- if (egid == 0 || egid != rgid)
+ if (egid != rgid)
return 1;
return 0;