summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyze <50497128+ryze312@users.noreply.github.com>2024-07-23 15:47:56 +0300
committerRyze <50497128+ryze312@users.noreply.github.com>2024-07-23 15:47:56 +0300
commit823679991f36844e5e825de176561b881387277f (patch)
tree9b546872aadc19b34e07b47323a21a539f39acb8
parent36a195d9ba019db805738f97b36bb459985014b4 (diff)
downloadwhere-rs-823679991f36844e5e825de176561b881387277f.tar.gz
where-rs-823679991f36844e5e825de176561b881387277f.tar.bz2
where-rs-823679991f36844e5e825de176561b881387277f.zip
@starscouts did a silly and forgot to remove this
-rw-r--r--whrd/src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/whrd/src/lib.rs b/whrd/src/lib.rs
index 50c9ef8..e508503 100644
--- a/whrd/src/lib.rs
+++ b/whrd/src/lib.rs
@@ -199,8 +199,7 @@ impl From<Utmpx> for Session {
// Work around a bug in Utmpx causing killed sessions to show as
// active when they are not.
- let mut path = PathBuf::from("/dev");
- path.push(utmpx.device_name().to_string());
+ // https://github.com/GrayJack/coreutils/issues/164
let active = utmpx.entry_type() == UtmpxKind::UserProcess && utmpx.is_active();
let login_time = utmpx.timeval().tv_sec as i64;