From 59e32a1f240c5f6a1d64d5e71a4a357245c34eaf Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 24 Feb 2012 20:25:43 +0100 Subject: [PATCH 07/12] libmount: canonicalize all paths from (fs)tab Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=797216 Signed-off-by: Karel Zak --- libmount/src/tab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmount/src/tab.c b/libmount/src/tab.c index 37f47bd..f10c1de 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; -- 1.7.9.2