Commit 1e4bc08eb8ce3c00f7b8e72dc69e07ccbc63ed20

Bruno Haible 2023-08-09T18:49:22

readutmp: Make it easier to filter for/against the boot-time entry. * lib/readutmp.h (READ_UTMP_BOOT_TIME, READ_UTMP_NO_BOOT_TIME): New enum items. * lib/readutmp.c (desirable_utmp_entry, read_utmp_from_systemd): Implement them. (read_utmp): If no entries can match the given options, return immediately.