chage: Fix regression in print_date
Introduced by c6c8130db4319613a91dd07bbb845f6c33c5f79f After removing snprintf, the format string should get unescaped once. Fixes #564 Reporter and patch author: DerMouse (github.com/DerMouse)
This commit is contained in:
parent
3dc1754e50
commit
e503fd574b
@ -228,7 +228,7 @@ static void print_date (time_t date)
|
|||||||
if (NULL == tp) {
|
if (NULL == tp) {
|
||||||
(void) printf ("time_t: %lu\n", (unsigned long)date);
|
(void) printf ("time_t: %lu\n", (unsigned long)date);
|
||||||
} else {
|
} else {
|
||||||
(void) strftime (buf, sizeof buf, iflg ? "%%Y-%%m-%%d" : "%%b %%d, %%Y", tp);
|
(void) strftime (buf, sizeof buf, iflg ? "%Y-%m-%d" : "%b %d, %Y", tp);
|
||||||
(void) puts (buf);
|
(void) puts (buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user