summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-07-16 04:34:05 +0000
committerChristopher Faylor <me@cgf.cx>2000-07-16 04:34:05 +0000
commit01e6597b1c1f688b7a3206fc17c22476c69e08db (patch)
tree837843d849674054106b5d0fe06d8187b806dafb /winsup/cygwin/dcrt0.cc
parentc77c4419918a00b4c6162c14001fc0c8676b2064 (diff)
downloadcygnal-01e6597b1c1f688b7a3206fc17c22476c69e08db.tar.gz
cygnal-01e6597b1c1f688b7a3206fc17c22476c69e08db.tar.bz2
cygnal-01e6597b1c1f688b7a3206fc17c22476c69e08db.zip
* dcrt0.cc (build_argv): Strip quotes from argv[0] since it should never be
globified.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 4dddd31b3..c9266dd65 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -439,7 +439,7 @@ build_argv (char *cmd, char **&argv, int &argc, int winshell)
/* Skip over characters until the closing quote */
{
sawquote = cmd;
- cmd = quoted (cmd, winshell);
+ cmd = quoted (cmd, argc > 0 && winshell);
}
if (issep (*cmd)) // End of argument if space
break;