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:
Dave Reisner 2012-02-17 12:17:49 -05:00 committed by Lennart Poettering
parent e2e9329411
commit 85eda5721f

View file

@ -1578,7 +1578,7 @@ static int mount_load_etc_fstab(Manager *m) {
free(what);
free(where);
if (r < 0)
if (k < 0)
r = k;
}