* g10.c (add_group): Use '=' to separate group name from group members.
authorDavid Shaw <dshaw@jabberwocky.com>
Mon, 9 Sep 2002 19:21:58 +0000 (19:21 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Mon, 9 Sep 2002 19:21:58 +0000 (19:21 +0000)
Use a better error message for when no = is found.

* hkp.c (hkp_export): Use CRLF in headers.

g10/ChangeLog
g10/g10.c
g10/hkp.c

index 2945f74..e2e9378 100644 (file)
@@ -1,3 +1,10 @@
+2002-09-09  David Shaw  <dshaw@jabberwocky.com>
+
+       * g10.c (add_group): Use '=' to separate group name from group
+       members.  Use a better error message for when no = is found.
+
+       * hkp.c (hkp_export): Use CRLF in headers.
+
 2002-09-03  David Shaw  <dshaw@jabberwocky.com>
 
        * mainproc.c (print_pkenc_list): Don't increment the error counter
index 1bbf5d5..ca0f28a 100644 (file)
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -816,10 +816,10 @@ static void add_group(char *string)
   STRLIST values=NULL;
 
   /* Break off the group name */
-  name=strsep(&string," ");
+  name=strsep(&string,"=");
   if(string==NULL)
     {
-      log_error(_("no values for group \"%s\"\n"),name);
+      log_error(_("no = sign found in group definition \"%s\"\n"),name);
       return;
     }
 
index 204d4ec..00d5c11 100644 (file)
--- a/g10/hkp.c
+++ b/g10/hkp.c
@@ -157,7 +157,7 @@ hkp_export( STRLIST users )
        return rc;
     }
 
-    sprintf( request, "Content-Length: %u\n",
+    sprintf( request, "Content-Length: %u\r\n",
                      (unsigned)iobuf_get_temp_length(temp) + 9 );
     iobuf_writestr( hd.fp_write, request );
     m_free( request );