From: Lennart Poettering Date: Wed, 13 Sep 2017 08:08:37 +0000 (+0200) Subject: shutdown: fix incorrect fscanf() result check (#6806) X-Git-Tag: v235~127 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d4ec01269244c2d35a781abf748ea9ba57666e2;p=platform%2Fupstream%2Fsystemd.git shutdown: fix incorrect fscanf() result check (#6806) A correction for 090e3c9796ef6468d4f396610804d62f6ffd797f. Fixes: #6796 --- 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;