richardphibel / rpms / systemd

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