* keyserver.c (parse_keyserver_uri): If there is a path present, set the
authorDavid Shaw <dshaw@jabberwocky.com>
Tue, 24 Jan 2006 21:03:06 +0000 (21:03 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Tue, 24 Jan 2006 21:03:06 +0000 (21:03 +0000)
direct_uri flag so the right keyserver helper is run.

g10/ChangeLog
g10/keyserver.c

index 4af244c..899ab8d 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-24  David Shaw  <dshaw@jabberwocky.com>
+
+       * keyserver.c (parse_keyserver_uri): If there is a path present,
+       set the direct_uri flag so the right keyserver helper is run.
+
 2006-01-22  David Shaw  <dshaw@jabberwocky.com>
 
        * keyserver.c (keyserver_spawn): Include the EXEEXT so we can find
index 75f45b6..6c55144 100644 (file)
@@ -362,6 +362,9 @@ parse_keyserver_uri(const char *uri,int require_scheme,
        keyserver->path=xstrdup(uri);
       else
        keyserver->path=xstrdup("/");
+
+      if(keyserver->path[1]!='\0')
+       keyserver->flags.direct_uri=1;
     }
   else if(uri[0]!='/')
     {