From 79327ade841699c5002515756056ab08df31736c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 18 Nov 2021 15:20:02 +0100 Subject: [PATCH] findmnt: filter entries before add to the tree References: 2a83759765aeedf41d6a053150bf6c3873491b8 Signed-off-by: Karel Zak --- misc-utils/findmnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c index d4fdd6de84..55aa936faf 100644 --- a/misc-utils/findmnt.c +++ b/misc-utils/findmnt.c @@ -798,7 +798,7 @@ static int create_treenode(struct libscols_table *table, struct libmnt_table *tb fs = NULL; while (mnt_table_next_fs(tb, itr, &fs) == 0) { - if (!has_line(table, fs)) + if (!has_line(table, fs) && match_func(fs, NULL)) create_treenode(table, tb, fs, NULL); } } -- 2.47.3