From 01b63ee348bc9744ec44fe5f77c2844dc12ec76b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 21 Jan 2022 12:57:29 +0100 Subject: [PATCH] findmnt: (verify) support fstype patterns mount(8) supports fstype patterns/lists (like "udf,iso9660") in fstab. Let's support the same by --verify. Signed-off-by: Karel Zak --- misc-utils/findmnt-verify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc-utils/findmnt-verify.c b/misc-utils/findmnt-verify.c index 609638c4d1a..6e4ce77bb82 100644 --- a/misc-utils/findmnt-verify.c +++ b/misc-utils/findmnt-verify.c @@ -15,6 +15,7 @@ #include "strutils.h" #include "xalloc.h" #include "pathnames.h" +#include "match.h" #include "findmnt.h" @@ -284,7 +285,7 @@ static int is_supported_filesystem(struct verify_context *vfy, const char *name) return 0; for (n = 0; n < vfy->fs_num; n++ ) { - if (strcmp(vfy->fs_ary[n], name) == 0) + if (match_fstype(vfy->fs_ary[n], name)) return 1; }