mirror of
https://github.com/systemd/systemd.git
synced 2024-11-30 13:53:39 +08:00
shutdown: fix incorrect fscanf() result check (#6806)
A correction for 090e3c9796
.
Fixes: #6796
This commit is contained in:
parent
586377fc92
commit
3d4ec01269
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user