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 | add3c68ac92a43c6c34498e60238e9cc7bf82412 (patch) | |
tree | 0ccf2833e8f25b3462f42f063c2adfa9bbc799bd /bin/reserved-but-public | |
parent | 38fe4fbcf1bc592b035a980beeafcd814baa99d3 (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 |