shutdown: fix incorrect fscanf() result check (#6806)
authorLennart Poettering <lennart@poettering.net>
Wed, 13 Sep 2017 08:08:37 +0000 (10:08 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Sep 2017 08:08:37 +0000 (10:08 +0200)
A correction for 090e3c9796ef6468d4f396610804d62f6ffd797f.

Fixes: #6796

src/core/umount.c

index b83f631..75f9779 100644 (file)
@@ -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;