Skip to contentSkip to conversation

cmd: typo in chain fuzzy lookup

PATCH New Pablo Neira Ayuso 1 participant 1 message May 19, 2021 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 cmd: typo in chain fuzzy lookup

Refer to chain, not table.

Error: No such file or directory; did you mean table ‘z’ in family ip? add chain x y { type filter nat prerouting priority dstnat; }

            ^

It should say instead:

Error: No such file or directory; did you mean chain ‘z’ in family ip?

---
 src/cmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/cmd.c +1 -1
index f9716fccd513..1f7e0fa39f4a 100644
@@ -40,7 +40,7 @@ static int nft_cmd_enoent_chain(struct netlink_ctx *ctx, const struct cmd *cmd,
 	if (!chain)
 		return 0;
 
-	netlink_io_error(ctx, loc, "%s; did you mean table ‘%s’ in family %s?",
+	netlink_io_error(ctx, loc, "%s; did you mean chain ‘%s’ in family %s?",
 			 strerror(ENOENT), chain->handle.chain.name,
 			 family2str(table->handle.family),
 			 table->handle.table.name);
Signature · 1 line
2.30.2