]> 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>
Wed, 25 Apr 2012 07:05:24 +0000 (09:05 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c

index cb565fb0c7405d5f4862ed304eee657a41c4e846..2cdd6bba9875bd50d9d97b1b295e291a6542fb29 100644 (file)
@@ -1398,9 +1398,8 @@ int mnt_context_guess_fstype(struct libmnt_context *cxt)
        }
 
 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");
 }