* 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
This commit is contained in:
akr 2014-09-06 12:08:02 +00:00
parent 42becbddc2
commit 11a8187bd1
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Sat Sep 6 20:59:06 2014 Tanaka Akira <akr@fsij.org>
* process.c (has_privilege): The gid zero is not a privilege.
Sat Sep 6 20:19:16 2014 Tanaka Akira <akr@fsij.org>
* process.c (struct child_handler_disabler_state): cancelstate field

View File

@ -3373,7 +3373,7 @@ has_privilege(void)
egid = getegid();
#endif
if (egid == 0 || egid != rgid)
if (egid != rgid)
return 1;
return 0;