From 85eda5721f8d2a20482ef228d341fbbd134c6799 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 17 Feb 2012 12:17:49 -0500 Subject: [PATCH] mount: properly check return for mount_add_* Previously, mount_load_etc_fstab() could never fail for reasons other than a setmntent() or allocation failure. --- src/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mount.c b/src/mount.c index f80fcf5f..982715a6 100644 --- a/src/mount.c +++ b/src/mount.c @@ -1578,7 +1578,7 @@ static int mount_load_etc_fstab(Manager *m) { free(what); free(where); - if (r < 0) + if (k < 0) r = k; } -- 2.39.5