[svn] assuan - r234 - trunk/src
svn author marcus
cvs at cvs.gnupg.org
Sun Dec 3 00:45:46 CET 2006
Author: marcus
Date: 2006-12-03 00:45:46 +0100 (Sun, 03 Dec 2006)
New Revision: 234
Modified:
trunk/src/ChangeLog
trunk/src/assuan-handler.c
Log:
2006-12-03 Marcus Brinkmann <marcus at g10code.de>
* assuan-handler.c (assuan_command_parse_fd): Also allow white
space after FD.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2006-12-02 23:24:31 UTC (rev 233)
+++ trunk/src/ChangeLog 2006-12-02 23:45:46 UTC (rev 234)
@@ -1,3 +1,8 @@
+2006-12-03 Marcus Brinkmann <marcus at g10code.de>
+
+ * assuan-handler.c (assuan_command_parse_fd): Also allow white
+ space after FD.
+
2006-12-02 Marcus Brinkmann <marcus at g10code.de>
* assuan-uds.c (uds_reader): Return 0 if recvmsg returns 0.
Modified: trunk/src/assuan-handler.c
===================================================================
--- trunk/src/assuan-handler.c 2006-12-02 23:24:31 UTC (rev 233)
+++ trunk/src/assuan-handler.c 2006-12-02 23:45:46 UTC (rev 234)
@@ -142,8 +142,8 @@
{
char *endp;
- if ( (strncmp (line, "FD", 2) && strncmp (line, "fd", 2))
- || (line[2] != '=' && line[2] != '\0'))
+ if ((strncmp (line, "FD", 2) && strncmp (line, "fd", 2))
+ || (line[2] != '=' && line[2] != '\0' && !spacep(&line[2])))
return set_error (ctx, Syntax_Error, "FD[=<n>] expected");
line += 2;
if (*line == '=')
More information about the Gnupg-commits
mailing list