]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/chage.c: print_day_as_date(): Simplify error handling
authorAlejandro Colomar <alx@kernel.org>
Wed, 31 Jul 2024 12:53:12 +0000 (14:53 +0200)
committerSerge Hallyn <serge@hallyn.com>
Fri, 23 Aug 2024 03:51:57 +0000 (22:51 -0500)
commit6a2e298a5bc596302aa8baaad7222eb8d0881ffe
tree1b534361274ec91586fb9f249c81a5878bb294f9
parent683b3caa6237ab05c026b6b351f04410750481a5
src/chage.c: print_day_as_date(): Simplify error handling

If localtime_r(3) fails, just print future, as we do in day_to_str().
It should only fail for unrealistic dates, if at all.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/chage.c