]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
--log-prefix and --ulog-prefix problem when not quoted in save function (reported...
authorHarald Welte <laforge@gnumonks.org>
Wed, 24 Jan 2001 01:52:46 +0000 (01:52 +0000)
committerHarald Welte <laforge@gnumonks.org>
Wed, 24 Jan 2001 01:52:46 +0000 (01:52 +0000)
extensions/libipt_LOG.c
extensions/libipt_ULOG.c

index f098df2f395221f4fbc18a5d3163112d5b11c271..024c68d2d065cd1271fd7331fbe5d10210ed7d99 100644 (file)
@@ -227,7 +227,7 @@ save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
                = (const struct ipt_log_info *)target->data;
 
        if (strcmp(loginfo->prefix, "") != 0)
-               printf("--log-prefix %s ", loginfo->prefix);
+               printf("--log-prefix \"%s\" ", loginfo->prefix);
 
        if (loginfo->level != LOG_DEFAULT_LEVEL)
                printf("--log-level %u ", loginfo->level);
index b27cbb9925c928659c23e69ec8a7c5e77673484b..a22b9ec2604d81cecadc48cd4d4c725d7c5ee03c 100644 (file)
@@ -136,7 +136,7 @@ static void save(const struct ipt_ip *ip,
            = (const struct ipt_ulog_info *) target->data;
 
        if (strcmp(loginfo->prefix, "") != 0)
-               printf("--ulog-prefix %s ", loginfo->prefix);
+               printf("--ulog-prefix \"%s\" ", loginfo->prefix);
 
        if (loginfo->nl_group != ULOG_DEFAULT_NLGROUP) {
                printf("--ulog-nlgroup ");