From: Bernhard Reutner-Fischer Date: Thu, 22 May 2008 22:05:55 +0000 (-0000) Subject: - not sure but i may have had the shutdown-time wrong and no records to verify X-Git-Tag: 1_11_0~189 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=61082ec1cccd25495ee102ba80a42e55eafe1b27;p=oweals%2Fbusybox.git - not sure but i may have had the shutdown-time wrong and no records to verify --- diff --git a/miscutils/last.c b/miscutils/last.c index af92e50cf..f25411881 100644 --- a/miscutils/last.c +++ b/miscutils/last.c @@ -73,7 +73,7 @@ int last_main(int argc, char **argv ATTRIBUTE_UNUSED) /* do we really need to be cautious here? */ n = index_in_strings(_ut_usr, ut.ut_user); if (++n > 0) - ut.ut_type = n; + ut.ut_type = n != 3 ? n : SHUTDOWN_TIME; #else if (strncmp(ut.ut_user, "shutdown", 8) == 0) ut.ut_type = SHUTDOWN_TIME;