From 5fff97599c6ac8b0f7c43ffe998c2e9c335920da Mon Sep 17 00:00:00 2001 From: Raphael Geissert Date: Wed, 14 Sep 2016 09:32:15 +0000 Subject: bugzilla's results may contain more than one CVE per line Use perl for easier looping and to have more readable code git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@44580 e39458fd-73e7-0310-bf30-c45bca0a0e42 --- check-external/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'check-external') diff --git a/check-external/update.sh b/check-external/update.sh index 1e6ea81a40..6953618f91 100755 --- a/check-external/update.sh +++ b/check-external/update.sh @@ -46,7 +46,7 @@ check_list() { # 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 -- cgit v1.2.3