Printing of sessions 'still logged in' was skipped because an error in logic. Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- login-utils/last.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login-utils/last.c b/login-utils/last.c index c23469e..7ab27c9 100644 --- a/login-utils/last.c +++ b/login-utils/last.c @@ -293,7 +293,7 @@ static int list(struct utmp *p, time_t t, int what, time_t present) */ tmp = (time_t)p->ut_time; - if (present && (present < tmp || 0 == t || t < present)) + if (present && (present < tmp || (0 < t && t < present))) return 0; strcpy(logintime, ctime(&tmp)); -- 1.8.4 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html