]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix mnt_fs_match_target()
authorKarel Zak <kzak@redhat.com>
Wed, 2 Oct 2024 10:15:40 +0000 (12:15 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 8 Jan 2025 12:57:43 +0000 (13:57 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/fs.c

index 323b74d7a4695de5208fc2b17ceb32dd603e77da..999fec49b78e2ff26990f04b0c1c557bc8fd3d73 100644 (file)
@@ -1694,7 +1694,7 @@ int mnt_fs_match_target(struct libmnt_fs *fs, const char *target,
        if (!fs || !target)
                return 0;
 #ifdef HAVE_STATMOUNT_API
-       mnt_fs_try_statmount(fs, target, STATMOUNT_MNT_BASIC);
+       mnt_fs_try_statmount(fs, target, STATMOUNT_MNT_POINT);
 #endif
        if (!fs->target)
                return 0;