Skip to content

Commit

Permalink
* dcrt0.cc (globify): Don't use \ quoting when apparently quoting a D…
Browse files Browse the repository at this point in the history
…OS path

spec, even within a quoted string.
  • Loading branch information
Christopher Faylor committed Apr 18, 2000
1 parent c845acf commit 25ba8f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions winsup/cygwin/ChangeLog
Original file line number Diff line number Diff line change
@@ -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
path spec.
path spec, even within a quoted string.

Sun Apr 16 18:54:21 2000 Christopher Faylor <cgf@cygnus.com>

Expand Down
4 changes: 1 addition & 3 deletions winsup/cygwin/dcrt0.cc
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,8 @@ globify (char *word, char **&argv, int &argc, int &argvlen)
char quote = *s;
while (*++s && *s != quote)
{
if (*s != '\\')
if (dos_spec || *s != '\\')
/* nothing */;
else if (dos_spec)
*p++ = '\\';
else if (s[1] == quote || s[1] == '\\')
s++;
*p++ = '\\';
Expand Down

0 comments on commit 25ba8f3

Please sign in to comment.