diff options
author | unknown <miguel@hegel.local> | 2003-07-23 21:57:44 -0400 |
---|---|---|
committer | unknown <miguel@hegel.local> | 2003-07-23 21:57:44 -0400 |
commit | c67f50f37e5a11cf5c5b58483ce48b147b58a82c (patch) | |
tree | 7656dbd6deb4d924409536891bd3072e4cdd93a3 /mysys/mf_format.c | |
parent | 9dce7500d7c18d3ef08a914e47e16462284d21d0 (diff) | |
download | mariadb-git-c67f50f37e5a11cf5c5b58483ce48b147b58a82c.tar.gz |
Fix for service issue with paths having spaces (bug #687)
Diffstat (limited to 'mysys/mf_format.c')
-rw-r--r-- | mysys/mf_format.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysys/mf_format.c b/mysys/mf_format.c index ab1904da162..36d3908d310 100644 --- a/mysys/mf_format.c +++ b/mysys/mf_format.c @@ -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 */ |