From patchwork Wed Nov 2 10:30:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 6066 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4N2NSQ3fT2z3wdF for ; Wed, 2 Nov 2022 10:30:14 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4N2NSN1qPnz2Nl; Wed, 2 Nov 2022 10:30:12 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4N2NSM6nwnz2yT5; Wed, 2 Nov 2022 10:30:11 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4N2NSL4D6kz2xR5 for ; Wed, 2 Nov 2022 10:30:10 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4N2NSK5mnlzQS; Wed, 2 Nov 2022 10:30:09 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1667385009; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=9wKh5N0fGzY1FQwbqoIsDtXqKt8R3XB6UGBWeRXBlnA=; b=Yv7bW87GAGiQ9OVQxwXT3Qol8aU4xWM9udRtt/5RNBxO6CSCeM+/x/v+5+rxBBE/YtP4+V jj3vPf2Kn28HiZCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1667385009; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=9wKh5N0fGzY1FQwbqoIsDtXqKt8R3XB6UGBWeRXBlnA=; b=O0CgPLK7INTHRLWXS1GNBB4zb0XN8i1xSJ3mpE8/AdjJ0ZTzTGUlVdTGyGUp+EsSn6RsQ/ i2ty5NXFsXUg/dj2gafYTBe44+DJrnUx3p3wU+WzCm0AnqY8QYZKgEWpN6equCyU2MyUXx hzd6y+vAymU3t2O3MUBmQT0MgxE6JaMuf05dxmLNMgN0A/Lq+3/vcIvSw2bOEow8z3jeIm 2pUC6hrds9Wp5+Um6BgZ9alhpaMLFQp/IP7gkz1YxPpEfXafLjahUYHHyqQWRJV+Qmhzoz OduuLmEiBrHrMxzlz8+ElasBaqoDCgww0UGmapZoM/HzhkbKeE0kAtVTZW9XAQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] misc-progs: wirelessctrl: Fix missing whitespace for log prefix Date: Wed, 2 Nov 2022 10:30:06 +0000 Message-Id: <20221102103006.650377-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Fixes: #12978 Signed-off-by: Michael Tremer Reviewed-by: Peter Müller --- src/misc-progs/wirelessctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc-progs/wirelessctrl.c b/src/misc-progs/wirelessctrl.c index 7cffc89df..d31901be1 100644 --- a/src/misc-progs/wirelessctrl.c +++ b/src/misc-progs/wirelessctrl.c @@ -168,13 +168,13 @@ int main(void) { /* with this rule you can disable the logging of the dropped wireless input packets*/ if (findkey(kv, "DROPWIRELESSINPUT", buffer) && strcmp(buffer, "on") == 0) { - snprintf(command, STRING_SIZE-1, "/sbin/iptables --wait -A WIRELESSINPUT -i %s -j LOG --log-prefix 'DROP_Wirelessinput'", blue_dev); + snprintf(command, STRING_SIZE-1, "/sbin/iptables --wait -A WIRELESSINPUT -i %s -j LOG --log-prefix 'DROP_Wirelessinput '", blue_dev); safe_system(command); } /* with this rule you can disable the logging of the dropped wireless forward packets*/ if (findkey(kv, "DROPWIRELESSFORWARD", buffer) && strcmp(buffer, "on") == 0) { - snprintf(command, STRING_SIZE-1, "/sbin/iptables --wait -A WIRELESSFORWARD -i %s -j LOG --log-prefix 'DROP_Wirelessforward'", blue_dev); + snprintf(command, STRING_SIZE-1, "/sbin/iptables --wait -A WIRELESSFORWARD -i %s -j LOG --log-prefix 'DROP_Wirelessforward '", blue_dev); safe_system(command); }