From 3eb0ca0ee5011a1660c9e55a2f6575b2fcaae897 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 27 Dec 2005 15:09:50 +0000 Subject: [PATCH] propagated fix for the path bug. Thanks to Nick Craig-Wood git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@225 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- CHANGELOG | 3 +++ fail2ban | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 40b8c137..54bf066a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -13,6 +13,9 @@ ver. 0.6.? (200?/??/??) - ??? enable this feature (-1 is perfect). Thanks to Mannone - Fixed locale bug. Thanks to Fernando José - Fixed crash when time format does not match data +- Propagated patch from Debian to fix fail2ban search path + addition to the path search list: now it is added first. + Thanks to Nick Craig-Wood ver. 0.6.0 (2005/11/20) - stable ---------- diff --git a/fail2ban b/fail2ban index 9b0d4866..5eace8bd 100755 --- a/fail2ban +++ b/fail2ban @@ -35,8 +35,9 @@ except Exception: print "Unable to set locale to " + `locale.getdefaultlocale()` sys.exit(-1) -# Appends our own modules path. -sys.path.append("/usr/lib/fail2ban") +# Inserts our own modules path first in the list +# fix for bug #343821 +sys.path.insert(1, "/usr/lib/fail2ban") # Now we can import our modules. import fail2ban