diff options
author | Dominik George <natureshadow@debian.org> | 2023-03-27 12:59:45 +0200 |
---|---|---|
committer | Dominik George <natureshadow@debian.org> | 2023-03-27 12:59:45 +0200 |
commit | 49375e474bee4d9a5ee23e44d9257f89d8eaa9ec (patch) | |
tree | a69bc53efcaa93e0930d8730f09730d2116602d4 /bin/rejected-with-info | |
parent | 7816c862df2fc979aebce9f072e3cbf3d84c253c (diff) |
Revert "Claim xrdp"
This reverts commit 7816c862df2fc979aebce9f072e3cbf3d84c253c.
Diffstat (limited to 'bin/rejected-with-info')
l---------[-rwxr-xr-x] | bin/rejected-with-info | 87 |
1 files changed, 1 insertions, 86 deletions
diff --git a/bin/rejected-with-info b/bin/rejected-with-info index 8ae56fd01e..0c59069b10 100755..120000 --- a/bin/rejected-with-info +++ b/bin/rejected-with-info @@ -1,86 +1 @@ -#!/bin/sh - -#################### -# Copyright (C) 2011 by Raphael Geissert <geissert@debian.org> -# -# -# This file is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This file is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this file. If not, see <https://www.gnu.org/licenses/>. -#################### - -set -eu - -list=data/CVE/list - -[ -f $list ] || { - echo "error: $list doesn't exist" >&2 - exit 1 -} - -verbose=false -if [ "${1:-}" = "--verbose" ]; then - verbose=true - shift -fi - -regex='*' -if [ -n "${1:-}" ]; then - regex="${1:-}" -fi - -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" - condition_seen=false - wanted=true - ;; - CVE-*) - cve="$line" - condition_seen=false - wanted=false - ;; - *$condition) - condition_seen=true - ;; - *) - if ! $condition_seen || ! $wanted; then - continue - fi - if [ "$cve" ]; then - if $verbose; then - printf "%s\n" "$cve" - else - printf "%s\n" "$(printf '%s' "$cve" | cut -d\ -f1)" - fi - cve= - fi - if $verbose; then - printf "\t%s\n" "$line" - fi - ;; - esac -done < "$list" +reserved-but-public
\ No newline at end of file |