]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
iprule: avoid printing extra space after gateway for nat action
authorThomas Haller <thaller@redhat.com>
Tue, 23 Apr 2019 07:16:12 +0000 (09:16 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 24 Apr 2019 22:06:15 +0000 (15:06 -0700)
For all other actions we avoid the trailing space, so do it here
as well.

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iprule.c

index 83aef38e0dc7362efc5caacc8eec67154d0f5fce..2479c3abb66be2b803123baeb3ae633cc0d1b9db 100644 (file)
@@ -443,7 +443,7 @@ int print_rule(struct nlmsghdr *n, void *arg)
                        gateway = format_host_rta(frh->family, tb[RTA_GATEWAY]);
 
                        print_string(PRINT_ANY, "nat_gateway",
-                                    "map-to %s ", gateway);
+                                    "map-to %s", gateway);
                } else {
                        print_null(PRINT_ANY, "masquerade", "masquerade", NULL);
                }