Ticket #38961: patch-fail2ban-client.diff
File patch-fail2ban-client.diff, 1.1 KB (added by fclaire@…, 12 years ago) |
---|
-
fail2ban-client
old new 26 26 import getopt, time, shlex, socket 27 27 28 28 # Inserts our own modules path first in the list 29 # fix for bug #343821 30 if os.path.abspath(__file__).startswith('/usr/'): 31 # makes sense to use system-wide library iff -client is also under /usr/ 32 sys.path.insert(1, "/usr/share/fail2ban") 29 # Camusensei issue #112 - https://github.com/fail2ban/fail2ban/issues/112 30 try: 31 from common.version import version 32 except ImportError, e: 33 sys.path.insert(1, "@@PREFIX@@/share/fail2ban") 34 from common.version import version 33 35 34 36 # Now we can import our modules 35 from common.version import version36 37 from common.protocol import printFormatted 37 38 from client.csocket import CSocket 38 39 from client.configurator import Configurator … … 55 56 self.__stream = None 56 57 self.__configurator = Configurator() 57 58 self.__conf = dict() 58 self.__conf["conf"] = " /etc/fail2ban"59 self.__conf["conf"] = "@@PREFIX@@/etc/fail2ban" 59 60 self.__conf["dump"] = False 60 61 self.__conf["force"] = False 61 62 self.__conf["verbose"] = 1