Author: jfs
Date: 2007-11-03 23:46:12 +0100 (Sat, 03 Nov 2007)
New Revision: 511
Modified:
trunk/openvas-plugins/audit/audit-plugins
Log:
Try not to overflow arguments
Modified: trunk/openvas-plugins/audit/audit-plugins
===================================================================
--- trunk/openvas-plugins/audit/audit-plugins 2007-11-03 22:44:56 UTC (rev
510)
+++ trunk/openvas-plugins/audit/audit-plugins 2007-11-03 22:46:12 UTC (rev
511)
@@ -84,7 +84,7 @@
count=0
# This regexp is bound to find non-free plugins:
-for plugin in `egrep -li "script_copyright.*Tenable.*" $SCRIPTDIR/*`; do
+for plugin in `egrep -rli "script_copyright.*Tenable.*" $SCRIPTDIR`; do
if egrep -iq '(c).*Tenable Network Security' "$plugin"; then
# If they have the script_copyright and the (c) then they
# are non-free for sure
@@ -96,7 +96,7 @@
fi
done
# This regexp might have false positives
-for plugin in `egrep -li "\(c\).*Tenable.*Network.*Security" $SCRIPTDIR/*`; do
+for plugin in `egrep -rli "\(c\).*Tenable.*Network.*Security" $SCRIPTDIR`; do
basename=`basename $plugin`
if [ ! -e non-free-false-positives ] || ! grep -q "^$basename"
non-free-false-positives; then
echo "POSSIBLE NON-FREE plugin $plugin found"
_______________________________________________
Openvas-commits mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-commits