diff options
author | Jameson Rollins <jrollins@finestructure.net> | 2010-01-18 11:43:06 -0500 |
---|---|---|
committer | Jameson Rollins <jrollins@finestructure.net> | 2010-01-18 11:43:06 -0500 |
commit | ef41243e3947608568579fde82bef1f5c74bda47 (patch) | |
tree | 05d1980c67e3e16d29fdda0fcab88841de1cf7dd /src/share/mh/import_key | |
parent | 6880d38e7faed336e4cfee7b1da037e90008a1b3 (diff) |
add check that service name isn't already in use in import_key
Diffstat (limited to 'src/share/mh/import_key')
-rw-r--r-- | src/share/mh/import_key | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/share/mh/import_key b/src/share/mh/import_key index ada2914..fea3d27 100644 --- a/src/share/mh/import_key +++ b/src/share/mh/import_key @@ -26,6 +26,10 @@ if [ -z "$serviceName" ] ; then failure "You must specify a service name for use in the OpenPGP certificate user ID." fi +# test that a key with that user ID does not already exist +check_key_userid "$serviceName" "$serviceName" && \ + failure "A key with service name '$serviceName' already exists." + # check that the service name is well formatted check_service_name "$serviceName" |