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
commitf67b6d7dea0504eb27cefb659f272b4b55d3b14f (patch)
tree997102695770c9641a5fe7a6d09b9c44ed3af8c0 /check-external
parent1d298bd03998a7e844cdf3f3a77fc6411115a5ab (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