projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69d5ba2
)
- not sure but i may have had the shutdown-time wrong and no records to verify
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Thu, 22 May 2008 22:05:55 +0000
(22:05 -0000)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Thu, 22 May 2008 22:05:55 +0000
(22:05 -0000)
miscutils/last.c
patch
|
blob
|
history
diff --git
a/miscutils/last.c
b/miscutils/last.c
index af92e50cf74c39390eeab4054f17176e8a313695..f254118816291bc8ab55ee29d3bbd14598fb6026 100644
(file)
--- 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;