diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-22 22:05:55 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-22 22:05:55 +0000 |
commit | 61082ec1cccd25495ee102ba80a42e55eafe1b27 (patch) | |
tree | d06594ca8234d2f9b9142af8ad23f0b930c54983 | |
parent | 69d5ba2f95287a59fb31583b014474859b22025b (diff) | |
download | busybox-w32-61082ec1cccd25495ee102ba80a42e55eafe1b27.tar.gz busybox-w32-61082ec1cccd25495ee102ba80a42e55eafe1b27.tar.bz2 busybox-w32-61082ec1cccd25495ee102ba80a42e55eafe1b27.zip |
- not sure but i may have had the shutdown-time wrong and no records to verify
-rw-r--r-- | miscutils/last.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
73 | /* do we really need to be cautious here? */ | 73 | /* do we really need to be cautious here? */ |
74 | n = index_in_strings(_ut_usr, ut.ut_user); | 74 | n = index_in_strings(_ut_usr, ut.ut_user); |
75 | if (++n > 0) | 75 | if (++n > 0) |
76 | ut.ut_type = n; | 76 | ut.ut_type = n != 3 ? n : SHUTDOWN_TIME; |
77 | #else | 77 | #else |
78 | if (strncmp(ut.ut_user, "shutdown", 8) == 0) | 78 | if (strncmp(ut.ut_user, "shutdown", 8) == 0) |
79 | ut.ut_type = SHUTDOWN_TIME; | 79 | ut.ut_type = SHUTDOWN_TIME; |