summaryrefslogtreecommitdiff
path: root/src/share/mh
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-07-14 01:51:18 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-07-14 01:51:18 -0400
commit82d758a25428509963ddb2a8f7db05c74348c628 (patch)
treeaf7dcf3bfdec66e5c82475ac1a9e8491d49e62d1 /src/share/mh
parentadef51285ea488ecda7b0a77b142d99e022d9e10 (diff)
fixing find_host_userid -- did this ever work?
Diffstat (limited to 'src/share/mh')
-rw-r--r--src/share/mh/add_hostname2
-rw-r--r--src/share/mh/revoke_hostname2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/share/mh/add_hostname b/src/share/mh/add_hostname
index 9df5eec..37cfd3c 100644
--- a/src/share/mh/add_hostname
+++ b/src/share/mh/add_hostname
@@ -28,7 +28,7 @@ fi
userID="ssh://${1}"
# test that the desired user ID does not already exist
-find_host_userid > /dev/null && \
+find_host_userid "$userID" > /dev/null && \
failure "Host userID '$userID' already exists."
if [ "$PROMPT" = "true" ] ; then
diff --git a/src/share/mh/revoke_hostname b/src/share/mh/revoke_hostname
index 7e4d573..b139cee 100644
--- a/src/share/mh/revoke_hostname
+++ b/src/share/mh/revoke_hostname
@@ -30,7 +30,7 @@ fi
userID="ssh://${1}"
# make sure the user ID to revoke
-uidIndex=$(find_host_userid) || \
+uidIndex=$(find_host_userid "$userID") || \
failure "No non-revoked user ID found matching '$userID'."
if [ "$PROMPT" = "true" ] ; then