]> 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:48:27 +0000 (11:48 +0200)
commit909ec8415cc1d2350abddfcaacec99448966e610
tree51266da3d1425fb1ca86055d79598d01b1f7c245
parent9403232d98c3328a3b3944334ebdbeea01481af2
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