summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authormiguel@hegel.local <>2003-07-23 21:57:44 -0400
committermiguel@hegel.local <>2003-07-23 21:57:44 -0400
commit33c47c7eadbb72bb680ff1a7df9302030e14e882 (patch)
tree7656dbd6deb4d924409536891bd3072e4cdd93a3 /mysys
parent06623670c3a6ac84ff7a082251bc99bdeb40c565 (diff)
downloadmariadb-git-33c47c7eadbb72bb680ff1a7df9302030e14e882.tar.gz
Fix for service issue with paths having spaces (bug #687)
Diffstat (limited to 'mysys')
-rw-r--r--mysys/mf_format.c8
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 */