From 377c9f57089e8c74676ebbfc0ac1d134a5236076 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 29 Dec 2017 15:32:05 -0800 Subject: [PATCH] Only search files in each CONFIG_PATH directory - no recursion 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 cfcc89d5e..a63254d5a 100644 --- a/Shorewall/lib.cli-std +++ b/Shorewall/lib.cli-std @@ -376,7 +376,7 @@ uptodate() { IFS=':' for dir in $g_shorewalldir $CONFIG_PATH; do - if [ -n "$(find ${dir} -newer $1)" ]; then + if [ -n "$(find ${dir} -mindepth 1 -maxdepth 1 -newer $1)" ]; then IFS="$ifs" return 1; fi