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:
Joachim Wiberg committed 2026-01-01 10:42:41 +01:00
1 parent 9ce95fe8c0
commit 69a4f2c115
1 file changed
+1 -1
+1 -1
View File
@@ -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 */