]> git.ipfire.org Git - thirdparty/util-linux.git/commit
unshare: use the new ul_get{grp,userpw}_str() routines
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Fri, 28 Nov 2025 02:32:41 +0000 (21:32 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Tue, 2 Dec 2025 05:45:31 +0000 (00:45 -0500)
commit0a7fb806118bc4418e231081bd13c69bbc31b988
treeb12f68111bd54b341bbfd6651fa4cc5354efa7b5
parent5a65afff1dfbd33ccf3304d6ed0dedce0a2bd6aa
unshare: use the new ul_get{grp,userpw}_str() routines

This change refactors get_group() and get_user(), so that it
uses the new routines ul_getgrp_str() and ul_getuserpw_str(),
to simplify the code and remove the overkill mem allocations.

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
sys-utils/unshare.c