diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2025-08-12 12:14:38 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2025-08-12 12:30:23 +0000 |
commit | babab49eee9472f628d774996de13d13d296c8c0 (patch) | |
tree | faeee78c057f324315bcddf8c8fd0ac3e56c1b42 /lib/libc/tests/stdio/print_positional_test.c | |
parent | 0312f80349eedfc2b0d2f24b4fd073795148d3d5 (diff) |
We previously would not have setgroups() at all, but now we would drop
our supplementary groups every time. This broke chroot -n, probably
among other things. We need tests here, but lets unbreak things first.
A future change may try to setgroups(2) when -u is specified in addition
to -G, so predicate the call on gidlist and don't populate that without
a grouplist.
PR: 288751
Fixes: 48fd05999b0f ("chroot: don't clobber the egid [...]")
Diffstat (limited to 'lib/libc/tests/stdio/print_positional_test.c')
0 files changed, 0 insertions, 0 deletions