Skip to contentSkip to conversation

libxt_output: add more spaces to output

PATCH Applied Jan Engelhardt 2 participants 2 messages Jan 17, 2009 – Jan 19, 2009 1 message not in the archive netfilter

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 6 lines · Daniel Drake

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

Approves-of-this-patch: Jan Engelhardt <[email protected]>

Quoted 23 lines

Index: iptables-20090116/extensions/libxt_owner.c
===================================================================

extensions/libxt_owner.c +2 -2
@@ -324,7 +324,7 @@ owner_mt_print_item_v0(const struct ipt_
 		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 ip6
 		return;
 	if (info->invert & flag)
 		printf("! ");
-	printf(label);
+	printf("%s ", label);
 
 	switch (info->match & flag) {
 	case IP6T_OWNER_UID:
#2 lore raw
Quoted 10 lines · Jan Engelhardt
Quoted 6 lines · Daniel Drake

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

Approves-of-this-patch: Jan Engelhardt <[email protected]>

Applied, thanks.