From 29719eb3d1a3239ce92c2fed04bf2a50474dacc5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 18 Mar 2022 09:49:53 +0100 Subject: [iptables-helper] Skip empty files --- .../iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker | 1 + 1 file changed, 1 insertion(+) (limited to 'core/modules/iptables-helper') diff --git a/core/modules/iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker b/core/modules/iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker index 62eada61..64afdc9d 100755 --- a/core/modules/iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker +++ b/core/modules/iptables-helper/data/opt/openslx/iptables/iptables-reloader-worker @@ -72,6 +72,7 @@ reload_rules () { local DISABLED="/opt/openslx/iptables/rules.d/disabled/" for file in /opt/openslx/iptables/rules.d/*; do [ -f "$file" ] || continue + [ -s "$file" ] || continue if [ ! -x "$file" ]; then slxlog "firewall-script-exec" "The firewall script '$file' is not executable (+x), moving to disabled/" mkdir -p "$DISABLED" -- cgit v1.2.3-55-g7522