diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-03-19 11:57:10 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-03-19 11:58:18 +0100 |
commit | 421157976351606bee0d2a33acee89178521f78a (patch) | |
tree | 5e6b181a096d628d2e6ec08e3282f2d077a9677f /extensions | |
parent | 467e72c34e3285ba42c839f48b7580e7ab11f51a (diff) |
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@medozas.de>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/libxt_comment.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/libxt_comment.c b/extensions/libxt_comment.c index 0ff0144d..67d7f998 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 = { |