diff options
Diffstat (limited to 'libmount/src/fs.c')
-rw-r--r-- | libmount/src/fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/fs.c b/libmount/src/fs.c index cae7ce648..949e718f4 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)) { |