From 0c869910eae722f2be9d79d22975400fcb2ef5cd Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Sat, 9 May 2015 10:26:14 +0100 Subject: [PATCH] BF: Fix fail2ban-regex not parsing journalmatch correctly --- ChangeLog | 1 + bin/fail2ban-regex | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 71d84e71..8bc0ca7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ ver. 0.9.3 (2015/XX/XXX) - wanna-be-released ----------- - Fixes: + * Fix fail2ban-regex not parsing journalmatch correctly from filter config - New Features: diff --git a/bin/fail2ban-regex b/bin/fail2ban-regex index b337ab5d..08bce1ee 100755 --- a/bin/fail2ban-regex +++ b/bin/fail2ban-regex @@ -297,8 +297,8 @@ class Fail2banRegex(object): "read from %(value)s" % locals() return False elif command[2] == 'addjournalmatch': - journalmatch = command[3] - self.setJournalMatch(shlex.split(journalmatch)) + journalmatch = command[3:] + self.setJournalMatch(journalmatch) elif command[2] == 'datepattern': datepattern = command[3] self.setDatePattern(datepattern)