]> git.ipfire.org Git - thirdparty/util-linux.git/commit
last: fix is_phantom() detection
authorSami Kerola <kerolasa@iki.fi>
Wed, 23 Apr 2014 22:32:11 +0000 (23:32 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sun, 4 May 2014 10:42:03 +0000 (11:42 +0100)
commit0e5218acd9ee73b0042489addf202a9b3cf799ed
treec6ce4b019bf046fb5f38db33854433cdff7f5a67
parent929f939e6aa49952881d44706e4249ca7d644578
last: fix is_phantom() detection

The /proc/<pid>/loginuid is not always available, and when so a running
session should not be determined to be gone.  This is a regression from
commit mentioned in reference.

Sessions that have started before previous system boot, and did not log
out meanwhile, will be marked as gone.  It is fair to say that these
sessions are most likely result of a wtmp corruption.

Reference: 404fa3f93c00c7e130f5a0ec963b2dc6a3743986
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
login-utils/last.c