[patch] miscutils/last.c: old sin :)

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Mon May 5 07:32:41 PDT 2008


Index: miscutils/last.c
===================================================================
--- miscutils/last.c	(revision 21370)
+++ miscutils/last.c	(working copy)
@@ -49,7 +49,7 @@
 				ut.ut_type = SHUTDOWN_TIME;
 			else if (strncmp(ut.ut_user, "reboot", 6) == 0)
 				ut.ut_type = BOOT_TIME;
-			else if (strncmp(ut.ut_user, "runlevel", 7) == 0)
+			else if (strncmp(ut.ut_user, "runlevel", 8) == 0)
 				ut.ut_type = RUN_LVL;
 		} else {
 			if (ut.ut_name[0] == '\0' || strcmp(ut.ut_name, "LOGIN") == 0) {


Cheers,

-- 
Cristian


More information about the busybox mailing list