mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-17 05:40:54 +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:
committed by
Lennart Poettering
parent
e2e9329411
commit
85eda5721f
+1
-1
@@ -1578,7 +1578,7 @@ static int mount_load_etc_fstab(Manager *m) {
|
||||
free(what);
|
||||
free(where);
|
||||
|
||||
if (r < 0)
|
||||
if (k < 0)
|
||||
r = k;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user