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:
parent
3a0261c785
commit
920d29f703
6 changed files with 395 additions and 342 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -3406,6 +3406,7 @@ dependencies = [
|
|||
"chrono",
|
||||
"clap",
|
||||
"thiserror",
|
||||
"utmp-classic",
|
||||
"uucore",
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue