mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
who/pinky: fix systemd local host
Signed-off-by: Alexander Bakanovskii <skotttt228@gmail.com>
This commit is contained in:
@@ -444,8 +444,9 @@ pub fn read_login_records() -> UResult<Vec<SystemdLoginRecord>> {
|
||||
.unwrap_or_default();
|
||||
|
||||
// Determine host (use remote_host if available)
|
||||
// If host is local (non-remote) we use display,
|
||||
let host = if remote_host.is_empty() {
|
||||
String::new()
|
||||
display.clone()
|
||||
} else {
|
||||
remote_host
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user