[systemd-commits] src/mount.c

Lennart Poettering lennart at kemper.freedesktop.org
Mon Mar 5 17:16:48 PST 2012


 src/mount.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 85eda5721f8d2a20482ef228d341fbbd134c6799
Author: Dave Reisner <d at falconindy.com>
Date:   Fri Feb 17 12:17:49 2012 -0500

    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 f80fcf5..982715a 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;
         }
 



More information about the systemd-commits mailing list