]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
src/passwd.c: print_status(): Fix typo (bogus use of the comma operator)
authorAlejandro Colomar <alx@kernel.org>
Mon, 29 Jan 2024 14:20:22 +0000 (15:20 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 14 Mar 2024 21:30:46 +0000 (16:30 -0500)
Amazing that this triggered no warnings at all.

Fixes: 355ad6a9e089 ("Have a single definition of date_to_str()")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/passwd.c

index ed92bc7c70a503e57a729047336c05e2c6365043..d90bc659af3d770af91502a99bcb0da9648096c1 100644 (file)
@@ -453,7 +453,7 @@ static void print_status (const struct passwd *pw)
 
        sp = prefix_getspnam (pw->pw_name); /* local, no need for xprefix_getspnam */
        if (NULL != sp) {
-               DAY_TO_STR(date, sp->sp_lstchg),
+               DAY_TO_STR(date, sp->sp_lstchg);
                (void) printf ("%s %s %s %ld %ld %ld %ld\n",
                               pw->pw_name,
                               pw_status (sp->sp_pwdp),