mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
mount: properly check return for mount_add_*
Previously, mount_load_etc_fstab() could never fail for reasons other than a setmntent() or allocation failure.
This commit is contained in:
parent
e2e9329411
commit
85eda5721f
|
@ -1578,7 +1578,7 @@ static int mount_load_etc_fstab(Manager *m) {
|
|||
free(what);
|
||||
free(where);
|
||||
|
||||
if (r < 0)
|
||||
if (k < 0)
|
||||
r = k;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue