From 879c1a32f7e1d5ea72c72c950d97c72dc6c464ef Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Sat, 27 Jul 2013 11:36:01 +0100 Subject: [PATCH] ENH: fail2ban-regex now uses iteraable for log file Previosuly, the whole file was read in first --- fail2ban-regex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban-regex b/fail2ban-regex index ff4bbd10..4c5a0a11 100755 --- a/fail2ban-regex +++ b/fail2ban-regex @@ -377,7 +377,7 @@ if __name__ == "__main__": try: hdlr = open(cmd_log) print "Use log file : %s" % cmd_log - test_lines = hdlr.readlines() + test_lines = hdlr # Iterable except IOError, e: print e sys.exit(-1)