svn commit: trunk/busybox/miscutils

aldot at busybox.net aldot at busybox.net
Thu May 22 22:05:56 UTC 2008


Author: aldot
Date: 2008-05-22 15:05:55 -0700 (Thu, 22 May 2008)
New Revision: 22060

Log:
- not sure but i may have had the shutdown-time wrong and no records to verify


Modified:
   trunk/busybox/miscutils/last.c


Changeset:
Modified: trunk/busybox/miscutils/last.c
===================================================================
--- trunk/busybox/miscutils/last.c	2008-05-22 21:56:26 UTC (rev 22059)
+++ trunk/busybox/miscutils/last.c	2008-05-22 22:05:55 UTC (rev 22060)
@@ -73,7 +73,7 @@
 /* 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;




More information about the busybox-cvs mailing list