From cbc3cb431cfc0011a2e3270b45afdb8930ea90b2 Mon Sep 17 00:00:00 2001 From: sebres Date: Thu, 24 Apr 2025 00:04:37 +0200 Subject: [PATCH] amend to a0093b557e920d5635ee714b8ba87c4b588651fe (systemd-review): flags cannot be specified simultaneously with files too; --- fail2ban/server/filtersystemd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fail2ban/server/filtersystemd.py b/fail2ban/server/filtersystemd.py index ce6600e3..3e261417 100644 --- a/fail2ban/server/filtersystemd.py +++ b/fail2ban/server/filtersystemd.py @@ -156,7 +156,9 @@ class FilterSystemd(JournalFilter): # pragma: systemd no cover args.get('flags', journal.LOCAL_ONLY), args.get('path')) if args['files']: args['files'] = list(args['files']) - args['path'] = None; # cannot be cannot be specified simultaneously with files + # flags and path cannot be specified simultaneously with files: + args['flags'] = None; + args['path'] = None; else: args['files'] = None