shutdown: fix incorrect fscanf() result check (#6806)

A correction for 090e3c9796ef6468d4f396610804d62f6ffd797f.

Fixes: #6796
This commit is contained in:
Lennart Poettering
2017-09-13 10:08:37 +02:00
committed by GitHub
parent 586377fc92
commit 3d4ec01269
+1 -1
View 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;