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-03-06 02:16:41 +01:00
committed by Lennart Poettering
parent e2e9329411
commit 85eda5721f
+1 -1
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;
}