diff options
author | Raphael Geissert <atomo64@gmail.com> | 2014-03-25 09:27:57 +0000 |
---|---|---|
committer | Raphael Geissert <atomo64@gmail.com> | 2014-03-25 09:27:57 +0000 |
commit | 9b5891f673c7f307a5b48c508622dc0df6d2b501 (patch) | |
tree | 105cbe0d58cf1c00da796399c143347a86de2e7e /bin/reserved-but-public | |
parent | d71e4ba96d737ded38781f0f53cf8198dce25b80 (diff) |
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
Diffstat (limited to 'bin/reserved-but-public')
-rwxr-xr-x | bin/reserved-but-public | 22 |
1 files changed, 16 insertions, 6 deletions
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 |