From fb8d31db2c1655d564c7cfaaf97fa490c1e1706e Mon Sep 17 00:00:00 2001 From: Christian Goeschel Ndjomouo Date: Thu, 27 Nov 2025 20:04:58 -0500 Subject: [PATCH] chsh: use new xgetuserpw() instead of xgetpwnam() Signed-off-by: Christian Goeschel Ndjomouo --- login-utils/chsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login-utils/chsh.c b/login-utils/chsh.c index 3850bb843..072336738 100644 --- a/login-utils/chsh.c +++ b/login-utils/chsh.c @@ -207,7 +207,7 @@ int main(int argc, char **argv) errx(EXIT_FAILURE, _("you (user %d) don't exist."), uid); } else { - pw = xgetpwnam(info.username, &pwbuf); + pw = xgetuserpw(info.username, &pwbuf); if (!pw) errx(EXIT_FAILURE, _("user \"%s\" does not exist."), info.username); -- 2.47.3