ryantimwilson / rpms / systemd

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