1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

* misc.c (optsep): Add the ability to understand keyword="quoted arg with

spaces" type options.
This commit is contained in:
David Shaw 2004-07-28 04:12:50 +00:00
parent a32297863b
commit a2e332cded
2 changed files with 20 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2004-07-27 David Shaw <dshaw@jabberwocky.com>
* misc.c (optsep): Add the ability to understand keyword="quoted
arg with spaces" type options.
2004-07-16 David Shaw <dshaw@jabberwocky.com> 2004-07-16 David Shaw <dshaw@jabberwocky.com>
* keylist.c (list_keyblock_print): Always use the new listing * keylist.c (list_keyblock_print): Always use the new listing

View File

@ -673,11 +673,23 @@ optsep(char **stringp)
ptr++; ptr++;
} }
/* There is an argument, so grab that too. */ /* There is an argument, so grab that too. At this point,
ptr points to the first character of the argument. */
if(sawequals) if(sawequals)
end=strpbrk(ptr," ,"); {
/* Is it a quoted argument? */
if(*ptr=='"')
{
ptr++;
end=strchr(ptr,'"');
if(end)
end++;
}
else
end=strpbrk(ptr," ,");
}
if(end) if(end && *end)
{ {
*end='\0'; *end='\0';
*stringp=end+1; *stringp=end+1;