1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix for service issue with paths having spaces (bug #687)

This commit is contained in:
unknown
2003-07-23 21:57:44 -04:00
parent 9dce7500d7
commit c67f50f37e
3 changed files with 14 additions and 2 deletions

View File

@ -111,6 +111,14 @@ my_string fn_format(my_string to, const char *name, const char *dir,
strmov(buff,to);
(void) my_readlink(to, buff, MYF(0));
}
if ( flag & MY_QUOTE_SPACES)
if ( strchr(to, ' '))
{
char tmp_buff[FN_REFLEN];
tmp_buff[0]='"';
strxmov(tmp_buff+1,to,"\"",NullS);
strmov(to,tmp_buff);
}
DBUG_RETURN (to);
} /* fn_format */