Commit 796c78d1 authored by unknown's avatar unknown

Fixed a bug in default.c, which caused quoted arguments not

being read correctly from my.cnf.
parent 2fefe9e1
......@@ -387,6 +387,8 @@ static int search_default_file(DYNAMIC_ARRAY *args, MEM_ROOT *alloc,
*ptr++= '=';
for ( ; value != value_end; value++)
{
if (*value == '\"' || *value == '\'')
continue;
if (*value == '\\' && value != value_end-1)
{
switch(*++value) {
......@@ -405,6 +407,12 @@ static int search_default_file(DYNAMIC_ARRAY *args, MEM_ROOT *alloc,
case 's':
*ptr++= ' '; /* space */
break;
case '\"':
*ptr++= '\"';
break;
case '\'':
*ptr++= '\'';
break;
case '\\':
*ptr++= '\\';
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment