sysvinit-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sysvinit-devel] [PATCH 4/5] init.c: change parameter in test function -


From: Michał Kulling
Subject: [sysvinit-devel] [PATCH 4/5] init.c: change parameter in test function - redo_utmp_wtmp()
Date: Mon, 10 Feb 2014 21:55:21 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

Simple fix in redo_utmp_wtmp() function:

in test function currently is check the same value:
        if ((wrote_wtmp_rlevel == 0) || (wrote_wtmp_rlevel == 0))
Changed to:
        if ((wrote_wtmp_rlevel == 0) || (wrote_utmp_rlevel == 0))


==========================

--- init.c-orig    2014-02-10 21:15:58.950073035 +0100
+++ init.c    2014-02-10 21:17:07.274074658 +0100
@@ -2185,7 +2185,7 @@
     if ((wrote_wtmp_reboot == 0) || (wrote_utmp_reboot == 0))
         write_utmp_wtmp("reboot", "~~", 0, BOOT_TIME, "~");
 -    if ((wrote_wtmp_rlevel == 0) || (wrote_wtmp_rlevel == 0))
 +    if ((wrote_wtmp_rlevel == 0) || (wrote_utmp_rlevel == 0))
         write_utmp_wtmp("runlevel", "~~", thislevel + 256 * prevlevel, RUN_LVL, "~");
 }

-- 
Michal Kulling

Attachment: init.c_patch4_10022014.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]