Author: jfs
Date: 2007-11-03 23:51:07 +0100 (Sat, 03 Nov 2007)
New Revision: 512

Modified:
   trunk/openvas-plugins/audit/audit-plugins
Log:
Also apply false positive test to non-free checks

Modified: trunk/openvas-plugins/audit/audit-plugins
===================================================================
--- trunk/openvas-plugins/audit/audit-plugins   2007-11-03 22:46:12 UTC (rev 
511)
+++ trunk/openvas-plugins/audit/audit-plugins   2007-11-03 22:51:07 UTC (rev 
512)
@@ -85,14 +85,17 @@
 
 # This regexp is bound to find non-free plugins:
 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
-        echo "NON-FREE plugin $plugin found"
-        count=$(($count+1))
-    else
-        echo "POSSIBLE NON-FREE plugin $plugin found"
-        count=$(($count+1))
+    basename=`basename $plugin`
+    if [ ! -e non-free-false-positives ] || ! grep -q "^$basename" 
non-free-false-positives; then
+        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
+            echo "NON-FREE plugin $plugin found"
+            count=$(($count+1))
+        else
+         echo "POSSIBLE NON-FREE plugin $plugin found"
+         count=$(($count+1))
+       fi
     fi
 done
 # This regexp might have false positives

_______________________________________________
Openvas-commits mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-commits

Reply via email to