]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix mnt_context_guess_fstype()
authorKarel Zak <kzak@redhat.com>
Wed, 25 Apr 2012 07:05:24 +0000 (09:05 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 24 May 2012 10:17:51 +0000 (12:17 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c

index f97dd36a67efdf29dc1ff694903eae1c58184fb7..6caf71032db4bf924d702ee383913bfe99050c5f 100644 (file)
@@ -1310,9 +1310,8 @@ int mnt_context_guess_fstype(struct libmnt_context *cxt)
        if (rc)
                goto err;
 done:
-       DBG(CXT, mnt_debug_h(cxt, "FS type: %s",
-                               mnt_fs_get_fstype(cxt->fs)));
-       return 0;
+       DBG(CXT, mnt_debug_h(cxt, "FS type: %s", mnt_fs_get_fstype(cxt->fs)));
+       return rc;
 none:
        return mnt_fs_set_fstype(cxt->fs, "none");
 err: