From 3837dd24a6c5708f92f1a8f0741d53632a634a88 Mon Sep 17 00:00:00 2001 From: Alexander Bakanovskii Date: Fri, 19 Sep 2025 18:59:09 +0300 Subject: [PATCH] who/pinky: fix systemd local host Signed-off-by: Alexander Bakanovskii --- src/uucore/src/lib/features/systemd_logind.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uucore/src/lib/features/systemd_logind.rs b/src/uucore/src/lib/features/systemd_logind.rs index 537cb1e3f..5c038ce37 100644 --- a/src/uucore/src/lib/features/systemd_logind.rs +++ b/src/uucore/src/lib/features/systemd_logind.rs @@ -444,8 +444,9 @@ pub fn read_login_records() -> UResult> { .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 };