[Secure-testing-commits] r25697 - bin
Raphael Geissert
atomo64-guest at moszumanska.debian.org
Wed Feb 12 14:23:23 UTC 2014
Author: atomo64-guest
Date: 2014-02-12 14:23:23 +0000 (Wed, 12 Feb 2014)
New Revision: 25697
Modified:
bin/reserved-but-public
Log:
allow taking a filter to restrict the output to CVE ids matching it
E.g.
bin/reserved-but-public 2010-*
bin/reserved-but-public 201[12]-*
Modified: bin/reserved-but-public
===================================================================
--- bin/reserved-but-public 2014-02-12 13:45:07 UTC (rev 25696)
+++ bin/reserved-but-public 2014-02-12 14:23:23 UTC (rev 25697)
@@ -30,21 +30,34 @@
verbose=false
if [ "${1:-}" = "--verbose" ]; then
verbose=true
+ shift
fi
+regex='*'
+if [ -n "${1:-}" ]; then
+ regex="${1:-}"
+fi
+
reserved=false
+wanted=false
cve=
while read line; do
case $line in
+ CVE-$regex)
+ cve="$line"
+ reserved=false
+ wanted=true
+ ;;
CVE-*)
cve="$line"
reserved=false
+ wanted=false
;;
*RESERVED)
reserved=true
;;
*)
- if ! $reserved; then
+ if ! $reserved || ! $wanted; then
continue
fi
if [ "$cve" ]; then
More information about the Secure-testing-commits
mailing list