Blame SOURCES/0545-shutdown-fix-incorrect-fscanf-result-check-6806.patch

17b0f1
From 4ee75042124dbc675fa68d2dadfdcf866d772de8 Mon Sep 17 00:00:00 2001
17b0f1
From: Lennart Poettering <lennart@poettering.net>
17b0f1
Date: Wed, 13 Sep 2017 10:08:37 +0200
17b0f1
Subject: [PATCH] shutdown: fix incorrect fscanf() result check (#6806)
17b0f1
17b0f1
A correction for 090e3c9796ef6468d4f396610804d62f6ffd797f.
17b0f1
17b0f1
Fixes: #6796
17b0f1
17b0f1
(cherry-picked from: 3d4ec01269244c2d35a781abf748ea9ba57666e2)
17b0f1
17b0f1
Related: #1312002
17b0f1
---
17b0f1
 src/core/umount.c | 2 +-
17b0f1
 1 file changed, 1 insertion(+), 1 deletion(-)
17b0f1
17b0f1
diff --git a/src/core/umount.c b/src/core/umount.c
17b0f1
index 6e8ccc794f..3eec0d4592 100644
17b0f1
--- a/src/core/umount.c
17b0f1
+++ b/src/core/umount.c
17b0f1
@@ -93,7 +93,7 @@ static int mount_points_list_get(MountPoint **head) {
17b0f1
                            "%ms"        /* (11) mount options */
17b0f1
                            "%*[^\n]",   /* some rubbish at the end */
17b0f1
                            &path, &type, &options);
17b0f1
-                if (k != 2) {
17b0f1
+                if (k != 3) {
17b0f1
                         if (k == EOF)
17b0f1
                                 break;
17b0f1