f1095c6
From 63edce22867a8d2029842e3d8ba277547e628006 Mon Sep 17 00:00:00 2001
f1095c6
From: Fedora systemd team <systemd-maint@redhat.com>
f1095c6
Date: Fri, 4 May 2018 10:02:20 +0200
f1095c6
Subject: [PATCH] shutdown: fix incorrect fscanf() result check
f1095c6
f1095c6
(cherry picked from commit 3d4ec01269244c2d35a781abf748ea9ba57666e2)
f1095c6
f1095c6
Resolves: #1554943
f1095c6
---
f1095c6
 src/core/umount.c | 2 +-
f1095c6
 1 file changed, 1 insertion(+), 1 deletion(-)
f1095c6
f1095c6
diff --git a/src/core/umount.c b/src/core/umount.c
f1095c6
index 87c5aa9..7e9ea20 100644
f1095c6
--- a/src/core/umount.c
f1095c6
+++ b/src/core/umount.c
f1095c6
@@ -97,7 +97,7 @@ static int mount_points_list_get(MountPoint **head) {
f1095c6
                            "%ms"        /* (11) mount options */
f1095c6
                            "%*[^\n]",   /* some rubbish at the end */
f1095c6
                            &path, &type, &options);
f1095c6
-                if (k != 2) {
f1095c6
+                if (k != 3) {
f1095c6
                         if (k == EOF)
f1095c6
                                 break;
f1095c6
 
f1095c6
-- 
f1095c6
2.14.3
f1095c6