mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
Drop logically dead code, found by Coverity Scan
Checks for uid and gid introduced in d017661
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -589,7 +589,7 @@ static pid_t service_fork(svc_t *svc)
|
||||
int i, j, n = 0;
|
||||
|
||||
/* Get user's supplementary groups from /etc/group */
|
||||
if (uid >= 0 && getgrouplist(svc->username, gid >= 0 ? gid : 0, supgids, &ngroups) >= 0)
|
||||
if (getgrouplist(svc->username, gid, supgids, &ngroups) >= 0)
|
||||
n = ngroups;
|
||||
|
||||
/* Add explicitly configured supplementary groups */
|
||||
|
||||
Reference in new issue
Block a user