Ticket #40121: patch-fail2ban-regex.diff
File patch-fail2ban-regex.diff, 985 bytes (added by nonstop.server@…, 11 years ago) |
---|
-
fail2ban-regex
old new 29 29 try: 30 30 from common.version import version 31 31 except ImportError, e: 32 sys.path.insert(1, " /usr/share/fail2ban")32 sys.path.insert(1, "@@PREFIX@@/share/fail2ban") 33 33 from common.version import version 34 34 35 35 from client.configparserinc import SafeConfigParserWithIncludes … … 70 70 71 71 test = None 72 72 73 CONFIG_DEFAULTS = {'configpath' : " /etc/fail2ban/"}73 CONFIG_DEFAULTS = {'configpath' : "@@PREFIX@@/etc/fail2ban/"} 74 74 75 75 def __init__(self): 76 76 self.__filter = Filter(None) … … 116 116 print 117 117 print "Log:" 118 118 print " string a string representing a log line" 119 print " filename path to a log file (/var/log/ auth.log)"119 print " filename path to a log file (/var/log/secure.log)" 120 120 print 121 121 print "Regex:" 122 122 print " string a string representing a 'failregex'"