From c08bd67f5061f90afede2fcffe4961d66dcff458 Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Sun, 12 May 2013 13:05:21 +0100 Subject: [PATCH] BF: fail2ban-regex systemd-journal field fix for __CURSOR --- bin/fail2ban-regex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/fail2ban-regex b/bin/fail2ban-regex index 078a936f..59f4f45e 100755 --- a/bin/fail2ban-regex +++ b/bin/fail2ban-regex @@ -413,7 +413,7 @@ if __name__ == "__main__": if journal is None: print "Error: systemd library not found. Exiting..." sys.exit(-1) - myjournal = journal.Reader() + myjournal = journal.Reader(converters={'__CURSOR': lambda x: x}) journalmatch = "" # Parse journal matches from command line for opt in optList: