From 3c9ff67ba8267baa4919a0abcf5c1ecf8848f9ce Mon Sep 17 00:00:00 2001 From: Liping Zhang Date: Fri, 7 Oct 2016 19:08:49 +0800 Subject: extensions: libipt_realm: add a missing space in translation We missed a blank space when do translate to nft, so if rt_realm can be mapped to name, the result looks ugly: # iptables-translate -A OUTPUT -m realm --realm 0 nft add rule ip filter OUTPUT rtclassidcosmos counter ^ Apply this patch: # iptables-translate -A OUTPUT -m realm --realm 0 nft add rule ip filter OUTPUT rtclassid cosmos counter Signed-off-by: Liping Zhang Signed-off-by: Pablo Neira Ayuso --- extensions/libipt_realm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/libipt_realm.c') diff --git a/extensions/libipt_realm.c b/extensions/libipt_realm.c index fd0622ad..8eea7874 100644 --- a/extensions/libipt_realm.c +++ b/extensions/libipt_realm.c @@ -121,7 +121,7 @@ print_realm_xlate(unsigned long id, unsigned long mask, if (numeric == 0) name = xtables_lmap_id2name(realms, id); if (name) - xt_xlate_add(xl, "%s%s", + xt_xlate_add(xl, " %s%s", op == XT_OP_EQ ? "" : "!= ", name); else xt_xlate_add(xl, " %s0x%lx", -- cgit v1.2.3