valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0210-utmp-make-sure-we-don-t-write-the-utmp-reboot-record.patch

572a44
From cd31a2a77cccee55836ae77ac9f436c3764baf88 Mon Sep 17 00:00:00 2001
572a44
From: Lukas Nykryn <lnykryn@redhat.com>
572a44
Date: Thu, 30 Jan 2014 14:37:23 +0100
572a44
Subject: [PATCH] utmp: make sure we don't write the utmp reboot record twice
572a44
 on each boot
572a44
572a44
---
572a44
 src/update-utmp/update-utmp.c | 3 ---
572a44
 1 file changed, 3 deletions(-)
572a44
572a44
diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c
572a44
index 202aa98..3606d17 100644
572a44
--- a/src/update-utmp/update-utmp.c
572a44
+++ b/src/update-utmp/update-utmp.c
572a44
@@ -268,9 +268,6 @@ static int on_runlevel(Context *c) {
572a44
                         return q;
572a44
                 }
572a44
 
572a44
-                /* Hmm, we didn't find any runlevel, that means we
572a44
-                 * have been rebooted */
572a44
-                r = on_reboot(c);
572a44
                 previous = 0;
572a44
         }
572a44