summaryrefslogtreecommitdiff
path: root/src/monkeysphere-host
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/monkeysphere-host
parentadef51285ea488ecda7b0a77b142d99e022d9e10 (diff)
fixing find_host_userid -- did this ever work?
Diffstat (limited to 'src/monkeysphere-host')
-rwxr-xr-xsrc/monkeysphere-host6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/monkeysphere-host b/src/monkeysphere-host
index d498065..2bef23c 100755
--- a/src/monkeysphere-host
+++ b/src/monkeysphere-host
@@ -141,13 +141,13 @@ find_host_userid() {
local tmpuidMatch
local line
- # match to only ultimately trusted user IDs
- tmpuidMatch="u:$(echo $userID | gpg_escape)"
+ # match to only "unknown" user IDs (host has no need for ultimate trust)
+ tmpuidMatch="-:$(echo $userID | gpg_escape)"
# find the index of the requsted user ID
# NOTE: this is based on circumstantial evidence that the order of
# this output is the appropriate index
- line=$(gpg_host_list | egrep '^(uid|uat):' | cut -f2,10 -d: | \
+ line=$(gpg_host_list | egrep '^uid:' | cut -f2,10 -d: | \
grep -n -x -F "$tmpuidMatch" 2>/dev/null)
if [ "$line" ] ; then