]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib: (pwdutils.c) new library routines to get a group/passwd struct by name or GID/UID
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Wed, 26 Nov 2025 02:36:23 +0000 (21:36 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Mon, 1 Dec 2025 07:58:13 +0000 (02:58 -0500)
commit563ce081db1fdc11ae290e15f430193e1dcef85a
tree760acf925af2bcb675cfce6c77137565806845fe
parent0c841ec5eb35400abf2a65c58a799d4045942a8d
lib: (pwdutils.c) new library routines to get a group/passwd struct by name or GID/UID

In some tools users can specify groups/users by their name but not
the GID or UID. To enable this in a trivial manner util-linux tools
can now call the ul_getgrp_str(), ul_getuserpw_str(), xgetgroup()
and xgetuserpw() routines to achieve this.

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
include/pwdutils.h
lib/Makemodule.am
lib/pwdutils.c