Improve when to capture capabilities

Signed-off-by: Matt Darfeuille <matdarf@gmail.com>
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Matt Darfeuille 2018-03-16 13:28:58 +01:00 committed by Tom Eastep
parent 3be071ca3d
commit cdeb82bdab
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -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