Signed-off-by: Eric Rannaud <e@xxxxxxxxxxxxxxxx> --- libmount/src/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmount/src/fs.c b/libmount/src/fs.c index cae7ce648c31..949e718f4ca5 100644 --- a/libmount/src/fs.c +++ b/libmount/src/fs.c @@ -1434,7 +1434,7 @@ int mnt_fs_match_target(struct libmnt_fs *fs, const char *target, if (!rc && cache) { /* 2) - canonicalized and non-canonicalized */ char *cn = mnt_resolve_path(target, cache); - rc = (cn && strcmp(cn, fs->target) == 0); + rc = (cn && mnt_fs_streq_target(fs, cn)); /* 3) - canonicalized and canonicalized */ if (!rc && cn && !mnt_fs_is_kernel(fs)) { -- 2.0.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html