Files
shadow/src
Tobias Stoeckmann 541d4dde23 src/chage.c: Unify long overflow checks in print_day_as_date()
The conversion from day to seconds can be done in print_date
(renamed to print_day_as_date for clarification).  This has the nice
benefit that DAY multiplication and long to time_t conversion are done
at just one place.

Co-developed-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Co-developed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Cherry-picked-from: 20100e4b22 ("src/chage.c: Unify long overflow checks in print_day_as_date()")
Cc: "Serge E. Hallyn" <serge@hallyn.com>
Link: <https://github.com/shadow-maint/shadow/pull/876>
[alx: This is a pre-requisite for 674409e226 ("lib/: Saturate addition to avoid overflow")]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2024-02-14 04:07:55 +01:00
..
2023-02-23 20:28:43 -06:00
2024-02-14 04:07:32 +01:00
2023-02-09 10:03:03 -06:00
2023-06-10 20:35:50 -05:00
2023-04-26 17:38:24 -05:00
2023-04-26 17:38:24 -05:00
2023-06-08 09:05:39 -05:00
2023-06-08 09:05:39 -05:00
2023-06-08 09:05:39 -05:00
2023-06-08 09:05:39 -05:00
2023-02-16 13:23:08 -06:00
2023-08-04 17:15:42 -05:00
2023-09-10 14:13:01 +02:00
2024-02-14 04:07:32 +01:00
2021-12-23 19:36:50 -06:00
2024-02-14 04:07:32 +01:00
2024-02-14 04:07:32 +01:00
2024-02-14 04:07:32 +01:00
2023-09-10 14:13:01 +02:00
2023-02-09 10:03:03 -06:00
2023-05-11 11:05:29 -05:00
2024-02-14 04:07:32 +01:00
2023-06-08 09:05:39 -05:00
2024-02-14 04:07:32 +01:00
2023-06-08 09:05:39 -05:00