diff options
author | Raphael Geissert <geissert@debian.org> | 2012-02-18 19:32:56 +0000 |
---|---|---|
committer | Raphael Geissert <geissert@debian.org> | 2012-02-18 19:32:56 +0000 |
commit | 63f01de0d788c5cfede177caf47fb1d9dfc6ef19 (patch) | |
tree | d99b0a1c8f2a340656e72339833f3d2d44038a83 /bin/gen-DSA | |
parent | a793c0c20fe3742e3a73c98b0a7e7433d55784b2 (diff) |
Eat the "DSA-" prefix if included
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@18472 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/gen-DSA')
-rwxr-xr-x | bin/gen-DSA | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/gen-DSA b/bin/gen-DSA index f1987a3803..e0d2d48022 100755 --- a/bin/gen-DSA +++ b/bin/gen-DSA @@ -45,8 +45,8 @@ if [ "$1" = "--save" ]; then fi DSAID= -if printf '%s' "$1" | grep -Eq '^[0-9]+(-[0-9]+|)$'; then - DSAID="$1" +if printf '%s' "$1" | grep -Eq '^(DSA-|)[0-9]+(-[0-9]+|)$'; then + DSAID="${1#DSA-}" shift fi |