forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-firewall/shorewall: Rev bump to limit find search depth
Link: https://sourceforge.net/p/shorewall/mailman/message/36172339/ Package-Manager: Portage-2.3.19, Repoman-2.3.6
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
net-firewall/shorewall/files/shorewall-5.1.10.1-fix-find.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
commit 4e5b98d3d928579bc3530893ceaf166337ea8e22 | ||
Author: Tom Eastep <[email protected]> | ||
Date: Fri Dec 29 15:32:05 2017 -0800 | ||
|
||
Only search files in each CONFIG_PATH directory - no recursion | ||
|
||
Signed-off-by: Tom Eastep <[email protected]> | ||
|
||
diff --git a/Shorewall/lib.cli-std b/Shorewall/lib.cli-std | ||
index 6f220aa3d..95eafdf65 100644 | ||
--- a/shorewall-5.1.10.1/lib.cli-std | ||
+++ b/shorewall-5.1.10.1/lib.cli-std | ||
@@ -386,7 +386,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters