cmd: typo in chain fuzzy lookup
Pablo Neira Ayuso
maintainerPATCH 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?
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- src/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/cmd.c +1 -1
@@ -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