diff --git a/ChangeLog b/ChangeLog index af9cb238bb..3c7270a887 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Sep 6 20:59:06 2014 Tanaka Akira + + * process.c (has_privilege): The gid zero is not a privilege. + Sat Sep 6 20:19:16 2014 Tanaka Akira * process.c (struct child_handler_disabler_state): cancelstate field diff --git a/process.c b/process.c index 3d1d0cd458..c258e5e7fc 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;