1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00

users: support OpenBS using utmp

OpenBSD uses the original utmp file format so the general `users` does not
work there. By using the `utmp-classic` lib, we cna process the current users
on the system from the /var/run/utmp and show the list.

fixes #5665
This commit is contained in:
Jadi 2024-05-16 17:54:22 +03:30
parent 92665144c9
commit 576341bb93
9 changed files with 123 additions and 90 deletions

View file

@ -330,6 +330,7 @@ time = { version = "0.3.36" }
unicode-segmentation = "1.11.0"
unicode-width = "0.1.12"
utf-8 = "0.7.6"
utmp-classic = "0.1.6"
walkdir = "2.5"
winapi-util = "0.1.8"
windows-sys = { version = "0.48.0", default-features = false }