daandemeyer / rpms / systemd

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