From: Dave Reisner Date: Fri, 17 Feb 2012 17:17:49 +0000 (-0500) Subject: mount: properly check return for mount_add_* X-Git-Tag: v44~59 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85eda5721f8d2a20482ef228d341fbbd134c6799;p=systemd mount: properly check return for mount_add_* Previously, mount_load_etc_fstab() could never fail for reasons other than a setmntent() or allocation failure. --- 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; }