[Secure-testing-commits] r44580 - check-external
Raphael Geissert
atomo64-guest at moszumanska.debian.org
Wed Sep 14 09:32:16 UTC 2016
Author: atomo64-guest
Date: 2016-09-14 09:32:15 +0000 (Wed, 14 Sep 2016)
New Revision: 44580
Modified:
check-external/update.sh
Log:
bugzilla's results may contain more than one CVE per line
Use perl for easier looping and to have more readable code
Modified: check-external/update.sh
===================================================================
--- check-external/update.sh 2016-09-14 09:10:17 UTC (rev 44579)
+++ check-external/update.sh 2016-09-14 09:32:15 UTC (rev 44580)
@@ -46,7 +46,7 @@
# but it is sufficient for now to get some additional CVE information
# from Red Hat source
wget -O redhat-bugzilla.html 'https://bugzilla.redhat.com/buglist.cgi?classification=Other&component=vulnerability&f1=alias&o1=regexp&product=Security%20Response&query_format=advanced&v1=^CVE-.*&order=priority%2Cbug_severity&limit=0'
-sed -rn '/CVE-[12][0-9]{2,}-/{s/^.+(CVE-[12][0-9]{3}-[0-9]{4,}).+$/\1/;T;p}' redhat-bugzilla.html | sort > cve.list
+perl -ne 'print "$1\n" while (s/(CVE-[12][0-9]{3}-[0-9]{4,})//);' < redhat-bugzilla.html | sort -u > cve.list
check_list cve.list
# List of issues fixed by each vendor, according to MITRE. Very
More information about the Secure-testing-commits
mailing list