Skip to content

Commit 84e6249

Browse files
authored
Merge pull request #8672 from bakanovskii/who-and-pinky-fix-where-column
who/pinky: fix systemd local host
2 parents bd7581f + 3837dd2 commit 84e6249

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/uucore/src/lib/features/systemd_logind.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,9 @@ pub fn read_login_records() -> UResult<Vec<SystemdLoginRecord>> {
444444
.unwrap_or_default();
445445

446446
// Determine host (use remote_host if available)
447+
// If host is local (non-remote) we use display,
447448
let host = if remote_host.is_empty() {
448-
String::new()
449+
display.clone()
449450
} else {
450451
remote_host
451452
};

0 commit comments

Comments
 (0)