]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
monitor: fix missing space after chain name
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Tue, 7 Apr 2015 15:05:14 +0000 (17:05 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 8 Apr 2015 17:05:12 +0000 (19:05 +0200)
Due to change f3ff9e9 ("rule: delete extra space in rule indentation") in
function rule_print(), a missing space happens in monitor.

before this patch:
 % nft monitor
 add rule ip test-table test-chainip protocol tcp

after this patch:
 % nft monitor
 add rule ip test-table test-chain ip protocol tcp

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c

index f957295ef4fccc0703a20c38b57241d026cec067..c118502abc2ef4e69276fe10017a44737ad00bcd 100644 (file)
@@ -1869,7 +1869,7 @@ static int netlink_events_rule_cb(const struct nlmsghdr *nlh, int type,
                        r = netlink_delinearize_rule(monh->ctx, nlr);
                        nlr_for_each_set(nlr, rule_map_decompose_cb, NULL);
 
-                       printf("add rule %s %s %s", family, table, chain);
+                       printf("add rule %s %s %s ", family, table, chain);
                        rule_print(r);
                        printf("\n");