Re: unshare regression in 2.42-rc1
From: Chris Hofstaedtler
Date: Thu Mar 26 2026 - 10:07:57 EST
Hi Christian,
* Christian Albrecht Goeschel Ndjomouo <cgoesc2@xxxxxxx> [260322 13:57]:
Thank you for pointing out this regression.
The problem is that if ul_getuserpw_str() cannot find any user with the provided
UID or username, the unshare internal helper function get_user() will error out
and stop argument parsing, even if a valid numeric value was provided. Previously,
the code would fallback to simply converting the string to an unsigned int and use
it for the uid_t, so I added that behavior back.
I found this issue to be true for the --map-group option as well, so I went ahead and fixed
both cases in this latest patch: https://github.com/util-linux/util-linux/pull/4134/changes/c74df906b67b2f9930662ca4e1ba04c21569d529
Please let us know if this fixed the problem on your end.
With the patch applied, the debvm tests succeed once again.
So this seems good.
I see Karel has in the meantime merged a different approach. I'll recheck with 2.42-rc2.
Thank you,
Chris