summaryrefslogtreecommitdiffstats
path: root/bin/gen-DSA
diff options
context:
space:
mode:
authorRaphael Geissert <geissert@debian.org>2013-03-10 19:52:59 +0000
committerRaphael Geissert <geissert@debian.org>2013-03-10 19:52:59 +0000
commit760f8ea973f7c45e018b7969de9a34b8f2449719 (patch)
tree79fe3407e5e1b414e71ea3f5f4f3e4560740e831 /bin/gen-DSA
parent8d521230344313a108dae34ea46e01f1470c6c47 (diff)
Drop leading blank space in CVE and bug numbers list
Additionally, "support" multiple bug numbers by correctly formatting and generating a list of them. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@21568 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/gen-DSA')
-rwxr-xr-xbin/gen-DSA4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/gen-DSA b/bin/gen-DSA
index 794e3fdd52..f72115ce20 100755
--- a/bin/gen-DSA
+++ b/bin/gen-DSA
@@ -55,7 +55,7 @@ tolower() {
}
split_n_sort() {
- printf '%s' "$1" | sed 's/[ ,;]+/ /g' | tr ' ' "\n" | sort -u |
+ printf '%s' "$1" | sed 's/[ ,;]+/ /g;s/^ //' | tr ' ' "\n" | sort -u |
sort -n | tr "\n" ' ' | sed -r 's/\s+/ /g;s/\s$//'
}
@@ -174,6 +174,8 @@ while [ $# -gt 0 ]; do
shift
done
+BUGNUM="$(split_n_sort "$BUGNUM")"
+
CVE="$(split_n_sort "$CVE")"
cve_spacing=

© 2014-2024 Faster IT GmbH | imprint | privacy policy