Commit 321daa595e02717c7dca111184fc091fda3862f8

Bruno Haible 2023-08-09T21:12:40

readutmp: Fix boot time in VMs after sleep state and date update. * lib/readutmp.c (read_utmp_from_file): New function, extracted from read_utmp. (get_boot_time_uncached): Before all other approaches, try to find the boot time in the /var/run/utmp file. (read_utmp): Invoke read_utmp_from_file.