]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chsh: use new xgetuserpw() instead of xgetpwnam()
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Fri, 28 Nov 2025 01:04:58 +0000 (20:04 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Mon, 1 Dec 2025 07:58:13 +0000 (02:58 -0500)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
login-utils/chsh.c

index 3850bb843ad5e2c06f4666561a4cc0dfca3cbd6b..0723367389cda93122df556701922bbe84ab4c8f 100644 (file)
@@ -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);