1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 13:37:48 +00:00

uptime: add support for OpenBSD using utmp

OpenBSD uses the original utmp file format when the other OS use utmpx
format to get infos for boot time and logged users.

By using the `utmp-classic` crate, we can process the logged users
on system from the /var/run/utmp file.

Signed-off-by: Laurent Cheylus <foxy@free.fr>
This commit is contained in:
Laurent Cheylus 2024-06-30 15:13:43 +02:00
parent 3a0261c785
commit 920d29f703
No known key found for this signature in database
6 changed files with 395 additions and 342 deletions

1
Cargo.lock generated
View file

@ -3406,6 +3406,7 @@ dependencies = [
"chrono",
"clap",
"thiserror",
"utmp-classic",
"uucore",
]