From patchwork Mon Aug 29 13:51:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 42066 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 423E027BBE9; Mon, 29 Aug 2022 14:52:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A706427BBEB for ; Mon, 29 Aug 2022 14:52:19 +0100 (BST) Received: from localhost ([::1]:36222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSfBa-00041i-PS for patchwork@mira.cbaines.net; Mon, 29 Aug 2022 09:52:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSfBK-000416-Lp for guix-patches@gnu.org; Mon, 29 Aug 2022 09:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSfBK-0003Nw-DP for guix-patches@gnu.org; Mon, 29 Aug 2022 09:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSfBJ-0000jG-Um for guix-patches@gnu.org; Mon, 29 Aug 2022 09:52:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57473] [PATCH v2 1/4] gnu: fail2ban-service-type: Fix field name serialization. Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 29 Aug 2022 13:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57473 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57473@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 57473-submit@debbugs.gnu.org id=B57473.16617810962703 (code B ref 57473); Mon, 29 Aug 2022 13:52:01 +0000 Received: (at 57473) by debbugs.gnu.org; 29 Aug 2022 13:51:36 +0000 Received: from localhost ([127.0.0.1]:60450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSfAt-0000hU-Km for submit@debbugs.gnu.org; Mon, 29 Aug 2022 09:51:35 -0400 Received: from nomad-cl1.staging.muradm.net ([139.162.159.157]:32868 helo=nomad-cl1.muradm.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSfAr-0000gq-W2 for 57473@debbugs.gnu.org; Mon, 29 Aug 2022 09:51:34 -0400 Received: from localhost ([127.0.0.1]:47174) by nomad-cl1.muradm.net with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1oSfAl-0000qd-2j; Mon, 29 Aug 2022 13:51:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=muradm.net; s=mail; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=fmzznEIOmI1EzRoiqKKfEiAMj1uZWiC4aLWMoVslhbY=; b=DnV696t5Scd6NLfXJVwCiMDv9+ seQSXMKvnKXWOB/F4HtHoWo283kdvDX9VNTti5RFROYFg28qPB8Zwgn3hmPSWyLUmbh6sIGs4aCLI dEZb3ZY7xFkhubrrAS3NBYTM4eQqubSzi/g4LKWgdKfQb1G0asFb+4pgupcoeNesPKes+1k3CqldO 18J7nwK43Z8Uf2YlW4B107v18nKHpiohdjzSskLR0uCATSItf+Vq3MXfPxZFQR07mdF2sB7brWjOJ l1EYGga2rrCCE95aqEED4Tphd/T1KBUks+YyxitGUhW1MxpYfzZCKFpUKg/7kwpByduy0XNJbUxjI dyYYSuyhq9DSsSocxKMeaixnITDsG6trii7CtKi7jcaypKwJ0U9DaqWv4LMyJl5CMjINLtWWBGLYx wBRR6ldZ6sspp31Yct3IVwCLT2tHovkOZag1A4ZzrQvbYKe5k3GzmzcHTt+JT33dDtGsWyCZP9J1H F5MsGKUW99Ig6Z6+EiNtSvHP; Received: from muradm by localhost with local (Exim 4.96) (envelope-from ) id 1oSfAf-00065T-1Q; Mon, 29 Aug 2022 16:51:21 +0300 From: muradm Date: Mon, 29 Aug 2022 16:51:18 +0300 Message-Id: <20220829135121.23392-1-mail@muradm.net> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829094205.15595-1-mail@muradm.net> References: <20220829094205.15595-1-mail@muradm.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/services/security.scm: Wrong condition in string-filter function in fail2ban-jail-configuration-serialize-field-name. --- gnu/services/security.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/services/security.scm b/gnu/services/security.scm index 1e0360c07f..9ab23ffb46 100644 --- a/gnu/services/security.scm +++ b/gnu/services/security.scm @@ -127,7 +127,7 @@ (define (fail2ban-jail-configuration-serialize-field-name name) (string-append "bantime." (substring name 9)))) ((string-contains name "-") (fail2ban-jail-configuration-serialize-field-name - (string-filter (lambda (c) (equal? c #\-)) name))) + (string-filter (lambda (c) (not (equal? c #\-))) name))) (else name))) (define (fail2ban-jail-configuration-serialize-string field-name value)