tftpd: allow initgroups() to rescue setgroups() failure
commit99112f02064359f5070c82298aa9a6f4dd58e535
authorH. Peter Anvin <hpa@zytor.com>
Thu, 30 May 2024 00:52:42 +0000 (29 17:52 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 30 May 2024 00:52:42 +0000 (29 17:52 -0700)
treeaea3fe398beed5a366a916df0f29c2966c3ad1fa
parent416046e2ad67508869ce472d8b8b0dd5578db0d7
tftpd: allow initgroups() to rescue setgroups() failure

If setgroups() fails, but initgroups() succeeds (somehow) then allow
the process to continue, as initgroups() ought to have set the group
list properly.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
tftpd/tftpd.c