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