Message ID | 20220829094205.15595-1-mail@muradm.net |
---|---|
State | Accepted |
Headers | show |
Series | [bug#57473] gnu: fail2ban-service-type: Fix field name serialization. | expand |
Context | Check | Description |
---|---|---|
cbaines/applying patch | fail | View Laminar job |
cbaines/issue | success | View issue |
cbaines/applying patch | fail | View Laminar job |
cbaines/issue | success | View issue |
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)