aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-09-09 19:21:58 +0000
committerDavid Shaw <[email protected]>2002-09-09 19:21:58 +0000
commitd8eda8dbd1955c36b02a98b8e8f1160743846b3c (patch)
treed7e9a516dd5ba4cea117194fbc4f7aae6439b0af
parent* NEWS: typo. (diff)
downloadgnupg-d8eda8dbd1955c36b02a98b8e8f1160743846b3c.tar.gz
gnupg-d8eda8dbd1955c36b02a98b8e8f1160743846b3c.zip
* 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.
-rw-r--r--g10/ChangeLog7
-rw-r--r--g10/g10.c4
-rw-r--r--g10/hkp.c2
3 files changed, 10 insertions, 3 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 2945f7400..e2e937859 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,10 @@
+2002-09-09 David Shaw <[email protected]>
+
+ * 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 <[email protected]>
* mainproc.c (print_pkenc_list): Don't increment the error counter
diff --git a/g10/g10.c b/g10/g10.c
index 1bbf5d592..ca0f28ade 100644
--- 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;
}
diff --git a/g10/hkp.c b/g10/hkp.c
index 204d4ec1a..00d5c1196 100644
--- 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 );