]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: canonicalize all paths from (fs)tab
authorKarel Zak <kzak@redhat.com>
Fri, 24 Feb 2012 19:25:43 +0000 (20:25 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Feb 2012 19:25:43 +0000 (20:25 +0100)
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=797216
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/tab.c

index 37f47bd6a85c6ebe16c5604f94199af461f9e636..f10c1de47507c785bd7806abd35db009d8d17e77 100644 (file)
@@ -456,7 +456,7 @@ struct libmnt_fs *mnt_table_find_target(struct libmnt_table *tb, const char *pat
        while(mnt_table_next_fs(tb, &itr, &fs) == 0) {
                char *p;
 
-               if (!fs->target || !mnt_fs_is_swaparea(fs) ||
+               if (!fs->target || mnt_fs_is_swaparea(fs) ||
                    (*fs->target == '/' && *(fs->target + 1) == '\0'))
                       continue;