From cdeb82bdab9f667cc7097b2d915d371a7a05a5df Mon Sep 17 00:00:00 2001 From: Matt Darfeuille Date: Fri, 16 Mar 2018 13:28:58 +0100 Subject: [PATCH] Improve when to capture capabilities Signed-off-by: Matt Darfeuille Signed-off-by: Tom Eastep --- Shorewall/lib.cli-std | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/lib.cli-std b/Shorewall/lib.cli-std index 8bbe80e3d..2cf72eed4 100644 --- a/Shorewall/lib.cli-std +++ b/Shorewall/lib.cli-std @@ -1485,7 +1485,7 @@ remote_reload_command() # $* = original arguments less the command. if [ -z "$getcaps" ]; then capabilities=$(find_file capabilities) - [ -f $capabilities ] || getcaps=Yes + [ ! -f $capabilities -o ! -s $capabilities ] && getcaps=Yes fi if [ -n "$getcaps" ]; then