From: Karel Zak Date: Thu, 18 Nov 2021 14:20:02 +0000 (+0100) Subject: findmnt: filter entries before add to the tree X-Git-Tag: v2.38-rc1~157 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79327ade841699c5002515756056ab08df31736c;p=thirdparty%2Futil-linux.git findmnt: filter entries before add to the tree References: 2a83759765aeedf41d6a053150bf6c3873491b8 Signed-off-by: Karel Zak --- 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); } }