mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-07 15:00:24 +08:00
* dcrt0.cc (globify): Don't use \ quoting when apparently quoting a DOS path
spec, even within a quoted string.
This commit is contained in:
parent
c845acffda
commit
25ba8f306f
@ -1,7 +1,7 @@
|
|||||||
Tue Apr 18 17:26:43 2000 Christopher Faylor <cgf@cygnus.com>
|
Tue Apr 18 19:15:29 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* dcrt0.cc (globify): Don't use \ quoting when apparently quoting a DOS
|
* dcrt0.cc (globify): Don't use \ quoting when apparently quoting a DOS
|
||||||
path spec.
|
path spec, even within a quoted string.
|
||||||
|
|
||||||
Sun Apr 16 18:54:21 2000 Christopher Faylor <cgf@cygnus.com>
|
Sun Apr 16 18:54:21 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
@ -332,10 +332,8 @@ globify (char *word, char **&argv, int &argc, int &argvlen)
|
|||||||
char quote = *s;
|
char quote = *s;
|
||||||
while (*++s && *s != quote)
|
while (*++s && *s != quote)
|
||||||
{
|
{
|
||||||
if (*s != '\\')
|
if (dos_spec || *s != '\\')
|
||||||
/* nothing */;
|
/* nothing */;
|
||||||
else if (dos_spec)
|
|
||||||
*p++ = '\\';
|
|
||||||
else if (s[1] == quote || s[1] == '\\')
|
else if (s[1] == quote || s[1] == '\\')
|
||||||
s++;
|
s++;
|
||||||
*p++ = '\\';
|
*p++ = '\\';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user