[iptables] libxt_comment: output quotes must be escaped in

Patrick McHardy netfilter-cvslog-bounces at lists.netfilter.org
Thu Mar 19 13:56:24 CET 2009


Gitweb:		http://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commit;h=421157976351606bee0d2a33acee89178521f78a
commit 421157976351606bee0d2a33acee89178521f78a
Author:     Jan Engelhardt <jengelh at medozas.de>
AuthorDate: Thu Mar 19 11:57:10 2009 +0100
Commit:     Jan Engelhardt <jengelh at medozas.de>
CommitDate: Thu Mar 19 11:58:18 2009 +0100

    libxt_comment: output quotes must be escaped in
    
    Reference: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=519584
    Signed-off-by: Jan Engelhardt <jengelh at medozas.de>
       via  421157976351606bee0d2a33acee89178521f78a (commit)
      from  467e72c34e3285ba42c839f48b7580e7ab11f51a (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 421157976351606bee0d2a33acee89178521f78a
Author: Jan Engelhardt <jengelh at medozas.de>
Date:   Thu Mar 19 11:57:10 2009 +0100

    libxt_comment: output quotes must be escaped in
    
    Reference: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=519584
    Signed-off-by: Jan Engelhardt <jengelh at medozas.de>

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

 extensions/libxt_comment.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Reference: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=519584
Signed-off-by: Jan Engelhardt <jengelh at medozas.de>

diff --git a/extensions/libxt_comment.c b/extensions/libxt_comment.c
index 0ff0144..67d7f99 100644
--- a/extensions/libxt_comment.c
+++ b/extensions/libxt_comment.c
@@ -84,7 +84,8 @@ comment_save(const void *ip, const struct xt_entry_match *match)
 	struct xt_comment_info *commentinfo = (struct xt_comment_info *)match->data;
 
 	commentinfo->comment[XT_MAX_COMMENT_LEN-1] = '\0';
-	printf("--comment \"%s\" ", commentinfo->comment);
+	printf("--comment ");
+	xtables_save_string((const char *)commentinfo->comment);
 }
 
 static struct xtables_match comment_match = {



More information about the netfilter-cvslog mailing list