From 9b5891f673c7f307a5b48c508622dc0df6d2b501 Mon Sep 17 00:00:00 2001 From: Raphael Geissert Date: Tue, 25 Mar 2014 09:27:57 +0000 Subject: Script to list REJECTED ids that have information Actually, it's just a modification to reserved-but-public git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@26237 e39458fd-73e7-0310-bf30-c45bca0a0e42 --- bin/reserved-but-public | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'bin/reserved-but-public') diff --git a/bin/reserved-but-public b/bin/reserved-but-public index 20f04619fb..fc4358d06d 100755 --- a/bin/reserved-but-public +++ b/bin/reserved-but-public @@ -38,26 +38,36 @@ if [ -n "${1:-}" ]; then regex="${1:-}" fi -reserved=false +condition=RESERVED +case "$(basename "$0")" in + reserved-*) + condition=RESERVED + ;; + rejected-*) + condition=REJECTED + ;; +esac + +condition_seen=false wanted=false cve= while read line; do case $line in CVE-$regex) cve="$line" - reserved=false + condition_seen=false wanted=true ;; CVE-*) cve="$line" - reserved=false + condition_seen=false wanted=false ;; - *RESERVED) - reserved=true + *$condition) + condition_seen=true ;; *) - if ! $reserved || ! $wanted; then + if ! $condition_seen || ! $wanted; then continue fi if [ "$cve" ]; then -- cgit v1.2.3