Author: jfs
Date: 2007-11-03 23:44:56 +0100 (Sat, 03 Nov 2007)
New Revision: 510
Modified:
trunk/openvas-plugins/audit/audit-plugins
Log:
Fixes to the script
Modified: trunk/openvas-plugins/audit/audit-plugins
===================================================================
--- trunk/openvas-plugins/audit/audit-plugins 2007-11-03 22:30:04 UTC (rev
509)
+++ trunk/openvas-plugins/audit/audit-plugins 2007-11-03 22:44:56 UTC (rev
510)
@@ -26,7 +26,7 @@
# Assume we are one subdirectory below in the sources
-SCRIPTDIR="../../scripts"
+SCRIPTDIR="../scripts"
[ -n "$1" ] && SCRIPTDIR=$1 # But also use the scriptdir provided, if any
if [ ! -d "$SCRIPTDIR" ] ; then
@@ -97,7 +97,8 @@
done
# This regexp might have false positives
for plugin in `egrep -li "\(c\).*Tenable.*Network.*Security" $SCRIPTDIR/*`; do
- if [ ! -e non-free-false-positives ] || ! grep -q "^$plugin"
non-free-false-positives; then
+ basename=`basename $plugin`
+ if [ ! -e non-free-false-positives ] || ! grep -q "^$basename"
non-free-false-positives; then
echo "POSSIBLE NON-FREE plugin $plugin found"
count=$(($count+1))
fi
_______________________________________________
Openvas-commits mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-commits