]> git.ipfire.org Git - thirdparty/glibc.git/commit
support: Don't fail on fchown when spawning sgid processes
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 1 Jun 2023 11:23:15 +0000 (07:23 -0400)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 20 Jun 2025 09:56:25 +0000 (11:56 +0200)
commitc9e44b6467377c12828416e4bae2a6b2d51f5bc8
treed57fee21ae67064eecfbbb09ffed293cea19d0b7
parent621c65ccf12ddd415ceeb2234423bd1acd0fabb3
support: Don't fail on fchown when spawning sgid processes

In some cases (e.g. when podman creates user containers), the only other
group assigned to the executing user is nobody and fchown fails with it
because the group is not mapped.  Do not fail the test in this case,
instead exit as unsupported.

Reported-by: Frédéric Bérat <fberat@redhat.com>
Tested-by: Frédéric Bérat <fberat@redhat.com>
Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
(cherry picked from commit 6286cca2cb8389dcffec39238a8bf15ffea96396)
support/support_capture_subprocess.c