Merge pull request #8672 from bakanovskii/who-and-pinky-fix-where-column

who/pinky: fix systemd local host
This commit is contained in:
Sylvestre Ledru
2025-09-28 22:53:57 +02:00
committed by GitHub
@@ -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
};