[iptables] libxt_owner: add more spaces to output

Patrick McHardy netfilter-cvslog-bounces at lists.netfilter.org
Mon Jan 19 15:37:22 CET 2009


Gitweb:		http://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commit;h=cfb9cf0509ad8100cd8d6ab52d60a8ffbb318578
commit cfb9cf0509ad8100cd8d6ab52d60a8ffbb318578
Author:     Daniel Drake <dsd at gentoo.org>
AuthorDate: Mon Jan 19 15:36:41 2009 +0100
Commit:     Patrick McHardy <kaber at trash.net>
CommitDate: Mon Jan 19 15:36:41 2009 +0100

    libxt_owner: add more spaces to output
    
    Commit bb9284d1 ("libxt_owner: add spaces to output") moved the printing
    of spaces away from the owner_mt_print() function family, but forgot to
    add spaces in all of the print_item() functions that are called.
    
    This is likely to be at least the partial cause of
    https://bugs.gentoo.org/show_bug.cgi?id=254435
    
    Signed-off-by: Daniel Drake <dsd at gentoo.org>
    Approves-of-this-patch: Jan Engelhardt <jengelh at medozas.de>
    Signed-off-by: Patrick McHardy <kaber at trash.net>
       via  cfb9cf0509ad8100cd8d6ab52d60a8ffbb318578 (commit)
      from  3d12c3bbffb43182df9ac5c0ad549b095d30d021 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cfb9cf0509ad8100cd8d6ab52d60a8ffbb318578
Author: Daniel Drake <dsd at gentoo.org>
Date:   Mon Jan 19 15:36:41 2009 +0100

    libxt_owner: add more spaces to output
    
    Commit bb9284d1 ("libxt_owner: add spaces to output") moved the printing
    of spaces away from the owner_mt_print() function family, but forgot to
    add spaces in all of the print_item() functions that are called.
    
    This is likely to be at least the partial cause of
    https://bugs.gentoo.org/show_bug.cgi?id=254435
    
    Signed-off-by: Daniel Drake <dsd at gentoo.org>
    Approves-of-this-patch: Jan Engelhardt <jengelh at medozas.de>
    Signed-off-by: Patrick McHardy <kaber at trash.net>

-----------------------------------------------------------------------

 extensions/libxt_owner.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Commit bb9284d1 ("libxt_owner: add spaces to output") moved the printing
of spaces away from the owner_mt_print() function family, but forgot to
add spaces in all of the print_item() functions that are called.

This is likely to be at least the partial cause of
https://bugs.gentoo.org/show_bug.cgi?id=254435

Signed-off-by: Daniel Drake <dsd at gentoo.org>
Approves-of-this-patch: Jan Engelhardt <jengelh at medozas.de>
Signed-off-by: Patrick McHardy <kaber at trash.net>

diff --git a/extensions/libxt_owner.c b/extensions/libxt_owner.c
index 298075e..4cd173e 100644
--- a/extensions/libxt_owner.c
+++ b/extensions/libxt_owner.c
@@ -324,7 +324,7 @@ owner_mt_print_item_v0(const struct ipt_owner_info *info, const char *label,
 		return;
 	if (info->invert & flag)
 		printf("! ");
-	printf(label);
+	printf("%s ", label);
 
 	switch (info->match & flag) {
 	case IPT_OWNER_UID:
@@ -375,7 +375,7 @@ owner_mt6_print_item_v0(const struct ip6t_owner_info *info, const char *label,
 		return;
 	if (info->invert & flag)
 		printf("! ");
-	printf(label);
+	printf("%s ", label);
 
 	switch (info->match & flag) {
 	case IP6T_OWNER_UID:



More information about the netfilter-cvslog mailing list