From: Christian Goeschel Ndjomouo Date: Fri, 28 Nov 2025 01:04:58 +0000 (-0500) Subject: chsh: use new xgetuserpw() instead of xgetpwnam() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb8d31db2c1655d564c7cfaaf97fa490c1e1706e;p=thirdparty%2Futil-linux.git chsh: use new xgetuserpw() instead of xgetpwnam() Signed-off-by: Christian Goeschel Ndjomouo --- 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);