summaryrefslogtreecommitdiffstats
path: root/check-external
diff options
context:
space:
mode:
authorRaphael Geissert <atomo64@gmail.com>2016-09-14 09:32:15 +0000
committerRaphael Geissert <atomo64@gmail.com>2016-09-14 09:32:15 +0000
commit5fff97599c6ac8b0f7c43ffe998c2e9c335920da (patch)
tree3e6967b9f0921bda8f37a646bbb95eb07d7a3742 /check-external
parent87fc3f150753b4dd386ce4d3f9e1b9127eb54773 (diff)
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
Diffstat (limited to 'check-external')
-rwxr-xr-xcheck-external/update.sh2
1 files changed, 1 insertions, 1 deletions
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy