mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-08-04 06:39:05 +00:00
BF: use os.path.join to generate full path - fixes includes in configs given local filename
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@779 a942ae1a-1317-0410-a47c-b1dcaea8d605
This commit is contained in:
parent
b9b9e42223
commit
afee14e778
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ after = 1.conf
|
|||
if os.path.isabs(newResource):
|
||||
r = newResource
|
||||
else:
|
||||
r = "%s/%s" % (resourceDir, newResource)
|
||||
r = os.path.join(resourceDir, newResource)
|
||||
if r in seen:
|
||||
continue
|
||||
s = seen + [resource]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue