summaryrefslogtreecommitdiffstats
path: root/libmount/src/tab.c
diff options
context:
space:
mode:
authorKarel Zak2012-02-24 20:25:43 +0100
committerKarel Zak2012-02-24 20:25:43 +0100
commit59e32a1f240c5f6a1d64d5e71a4a357245c34eaf (patch)
treebf7872d9bb99310821c14ce61031d4d210cde0be /libmount/src/tab.c
parentmore: fix typos (diff)
downloadkernel-qcow2-util-linux-59e32a1f240c5f6a1d64d5e71a4a357245c34eaf.tar.gz
kernel-qcow2-util-linux-59e32a1f240c5f6a1d64d5e71a4a357245c34eaf.tar.xz
kernel-qcow2-util-linux-59e32a1f240c5f6a1d64d5e71a4a357245c34eaf.zip
libmount: canonicalize all paths from (fs)tab
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=797216 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/tab.c')
-rw-r--r--libmount/src/tab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/tab.c b/libmount/src/tab.c
index 37f47bd6a..f10c1de47 100644
--- a/libmount/src/tab.c
+++ b/libmount/src/tab.c
@@ -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;