]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/timeutils: (parse_timestamp_reference) report errors on overflow
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 24 Sep 2023 21:43:44 +0000 (23:43 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 24 Sep 2023 21:44:36 +0000 (23:44 +0200)
commit7eb08ae15d89d40de159ebbb5462fa06a9787642
tree403589caaf1325737f0853cbc3c17e0d9b902c78
parentea4d607877417abd4d575f989a21d8648f22bb10
lib/timeutils: (parse_timestamp_reference) report errors on overflow

Instead of silently returning '0' on 'minus'-underflow and silently
wrapping on 'plus'-overflow return ERANGE.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
lib/timeutils.c