summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/spawn.cc
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-01-08 15:57:31 -0800
committerKaz Kylheku <kaz@kylheku.com>2017-11-17 12:13:29 -0800
commit6900a42323bfe9a909deddb27126a5e4e997d979 (patch)
treef9a61a3c4a85dc0c10fa76369f25c958767838ef /winsup/cygwin/spawn.cc
parentc6004c5bb9fa95209707ede066334b01ef4c61e6 (diff)
downloadcygnal-6900a42323bfe9a909deddb27126a5e4e997d979.tar.gz
cygnal-6900a42323bfe9a909deddb27126a5e4e997d979.tar.bz2
cygnal-6900a42323bfe9a909deddb27126a5e4e997d979.zip
Remove env var translation; PATH semicolon separated.
* winsup/cygwin/environ.cc (conv_envvars): Static array removed. (conv_start_chars): Likewise. (getwinenv): Function gutted to just return NULL. No environment vars require conversion. (match_first_char): Static function removed. (build_env): Removed logic for eliminating those variables that require donversion, since there are no such variables and the needed functions and arrays are gone. * winsup/cygwin/environ.cc (find_exec): Recognize semicolon as PATH separator.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index 663fde2d3..be4448333 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -130,7 +130,8 @@ find_exec (const char *name, path_conv& buf, const char *search,
tmp_path = tp.c_get ();
do
{
- char *eotmp = strccpy (tmp_path, &path, ':');
+ /* Cygnal: semicolon delim, not colon. */
+ char *eotmp = strccpy (tmp_path, &path, ';');
/* An empty path or '.' means the current directory, but we've
already tried that. */
if ((opt & FE_CWD) && (tmp_path[0] == '\0'