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