]> git.ipfire.org Git - thirdparty/coreutils.git/commit
uptime: output correct user count on OpenBSD
authorBruno Haible <bruno@clisp.org>
Sun, 30 Jul 2023 14:30:08 +0000 (16:30 +0200)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jul 2023 16:28:04 +0000 (09:28 -0700)
commita102826245505986bf336b87e081f1fdb44469d8
tree50d48bcc63f9232bf73f75562c2cdf8a1c924ead
parent76c795bf2e2b10ad7b0b955ac9324427f845a918
uptime: output correct user count on OpenBSD

* src/uptime.c (print_uptime, uptime): Always call read_utmp
and count the result.
* NEWS: Mention the fix (text by Bruno Haible).
NEWS
src/uptime.c