]> git.ipfire.org Git - thirdparty/util-linux.git/commit
utmpdump: validate subsecond granularity
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 28 Jun 2023 05:21:38 +0000 (07:21 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 28 Jun 2023 12:50:49 +0000 (14:50 +0200)
commita8d0195462f81456f10bc593bcfa69c23d0928ca
tree7601bde8de8d9ecc234059061ae2cd4f14312824
parent2b48beb44ebdf18c7784d06ebc77b50200125521
utmpdump: validate subsecond granularity

tv_usec is only valid in the range [0, 999999].
If the file contains garbage data replace interpret it as "0" instead.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
login-utils/utmpdump.c
tests/expected/utmp/utmpdump-subsecond