From: Karel Zak Date: Fri, 24 Feb 2012 19:25:43 +0000 (+0100) Subject: libmount: canonicalize all paths from (fs)tab X-Git-Tag: v2.22-rc1~754 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59e32a1f240c5f6a1d64d5e71a4a357245c34eaf;p=thirdparty%2Futil-linux.git libmount: canonicalize all paths from (fs)tab Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=797216 Signed-off-by: Karel Zak --- diff --git a/libmount/src/tab.c b/libmount/src/tab.c index 37f47bd6a8..f10c1de475 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;