diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-06-18 18:49:51 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-06-19 19:40:39 +0200 |
commit | 29740423f948b6f8ca11b250b6088df689d882dc (patch) | |
tree | 4390c6cbbf427807c86511a097705d57755c972c /src/rule.c | |
parent | ca4096bf271999e0ce23d0aed83291c50c789239 (diff) |
rule: do not suggest anonymous sets on mispelling errors
# nft list set x __set000
Error: No such file or directory; did you mean set ‘__set0’ in table ip ‘x’?
list set x __set000
^^^^^^^^
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/rule.c')
-rw-r--r-- | src/rule.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -388,6 +388,8 @@ struct set *set_lookup_fuzzy(const char *set_name, list_for_each_entry(table, &cache->list, list) { list_for_each_entry(set, &table->sets, list) { + if (set->flags & NFT_SET_ANONYMOUS) + continue; if (!strcmp(set->handle.set.name, set_name)) { *t = table; return set; |