On 06/07/2011 07:28 AM, Mr Dash Four wrote:
> 
>> Yes -- it's not difficult and I'll put in on the list for 4.4.21.
>>   
> Thanks, that would be nice as I currently have set this to "No" as I 
> wasn't certain it would pick up my plethora of files in the other 
> (non-standard) location.

Here is a lightly tested patch.

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________
diff --git a/Shorewall/shorewall b/Shorewall/shorewall
index db3fe8f..f45cf04 100755
--- a/Shorewall/shorewall
+++ b/Shorewall/shorewall
@@ -330,7 +330,23 @@ startup_error() {
 # Determine if there are config files newer than the passed object
 #
 uptodate() {
-    [ -f $1 ] && [ -z "$(find ${CONFDIR} -newer $1)" ]
+    [ -f $1 ] || return 1
+
+    local dir
+    local ifs="$IFS"
+
+    IFS=':'
+
+    for dir in $CONFIG_PATH; do
+	if [ -n "$(find ${dir} -newer $1)" ]; then
+	    IFS="$ifs"
+	    return 1;
+	fi
+    done
+
+    IFS="$ifs"
+
+    return 0
 }
 
 #

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to