commit | 585541e8e338a85b9f18cf5f6ed88758b29e61f2 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Thu Sep 15 18:27:05 2011 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Thu Sep 15 18:27:05 2011 +0200 |
tree | 6d17c3f52ecc3b9e05430793a923edb9b2551683 | |
parent | dd1eb413f28a2a8b5768056e1967e87b2363dc32 [diff] [blame] |
start_stop_daemon: set complementary group ids too. Closes 3253 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/networking/inetd.c b/networking/inetd.c index fc6847b..26b6699 100644 --- a/networking/inetd.c +++ b/networking/inetd.c
@@ -1414,7 +1414,7 @@ bb_error_msg("non-root must run services as himself"); goto do_exit1; } - if (pwd->pw_uid) { + if (pwd->pw_uid != 0) { if (sep->se_group) pwd->pw_gid = grp->gr_gid; /* initgroups, setgid, setuid: */