Ticket #38961: patch-fail2ban-regex.diff
File patch-fail2ban-regex.diff, 742 bytes (added by fclaire@…, 12 years ago) |
---|
-
fail2ban-regex
old new 25 25 # fix for bug #343821 26 26 if os.path.abspath(__file__).startswith('/usr/'): 27 27 # makes sense to use system-wide library iff -regex is also under /usr/ 28 sys.path.insert(1, " /usr/share/fail2ban")28 sys.path.insert(1, "@@PREFIX@@/share/fail2ban") 29 29 30 30 from client.configparserinc import SafeConfigParserWithIncludes 31 31 from ConfigParser import NoOptionError, NoSectionError, MissingSectionHeaderError … … 62 62 63 63 test = None 64 64 65 CONFIG_DEFAULTS = {'configpath' : " /etc/fail2ban/"}65 CONFIG_DEFAULTS = {'configpath' : "@@PREFIX@@/etc/fail2ban/"} 66 66 67 67 def __init__(self): 68 68 self.__filter = Filter(None)