Correct handling of capbilities file in load/reload.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-02-20 14:40:23 -08:00
parent 2147a421f0
commit d2a221a9cd

View File

@ -1444,10 +1444,7 @@ reload_command() # $* = original arguments less the command.
fi
if [ -z "$getcaps" ]; then
g_shorewalldir=$(resolve_file $g_directory)
ensure_config_path
capabilities=$(find_file capabilities)
[ -f $capabilities ] || getcaps=Yes
[ -f $g_directory/capabilities ] || getcaps=Yes
fi
if [ -f $g_directory/${g_program}.conf ]; then