projects
/
monkeysphere.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6880d38
)
add check that service name isn't already in use in import_key
author
Jameson Rollins
<jrollins@finestructure.net>
Mon, 18 Jan 2010 16:43:06 +0000
(11:43 -0500)
committer
Jameson Rollins
<jrollins@finestructure.net>
Mon, 18 Jan 2010 16:43:06 +0000
(11:43 -0500)
src/share/mh/import_key
patch
|
blob
|
history
diff --git
a/src/share/mh/import_key
b/src/share/mh/import_key
index ada291474aefe6a61268923d488eba24c89aba46..fea3d277094479b95b2c570a70cd85aa59d44175 100644
(file)
--- 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"