anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

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

181b3f
From b0630cdbb8f16850f6a62447328df77130059efc 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
181b3f
index 6e8ccc794..3eec0d459 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