teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

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

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