aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/exec.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-02-11 13:15:59 +0000
committerCorinna Vinschen <corinna@vinschen.de>2015-02-11 13:15:59 +0000
commit117b1b1edb13dcb7f613877e610db4ee0d179ccf (patch)
treece05b3cf8b7ec8a4f04a959c1248dd2c57d53995 /winsup/cygwin/exec.cc
parent9ab96e0fded04e80c5f3910cf30a240f3648231e (diff)
downloadnewlib-117b1b1edb13dcb7f613877e610db4ee0d179ccf.zip
newlib-117b1b1edb13dcb7f613877e610db4ee0d179ccf.tar.gz
newlib-117b1b1edb13dcb7f613877e610db4ee0d179ccf.tar.bz2
* dlfcn.cc (check_path_access): Drop FE_NATIVE from find_exec call.
(gfpod_helper): Drop equality sign from environment variable name in call to check_path_access. * exec.cc (execlp): Drop equality sign from environment variable name in call to find_exec. (execvp): Ditto. (execvpe): Ditto. * path.h (enum fe_types): Drop FE_NATIVE. (find_exec): Rename third paramter in declaration from search. Drop equality sign from default value. * spawn.cc (perhaps_suffix): Add PC_POSIX to path_conv::check call. (find_exec): Simplify function. Iterate over POSIX pathlist rather than Windows pathlist. Drop handling of FE_NATIVE flag. Always fill posix path of incoming path_conv buf, unless FE_NNF flag is given. (av::setup): Drop equality sign from environment variable name in call to find_exec. Call unshift with normalized_path. * winf.cc (av::unshift): Drop conv parameter and code converting Windows to POSIX path. * winf.h (av::unshift): Accommodate prototype.
Diffstat (limited to 'winsup/cygwin/exec.cc')
-rw-r--r--winsup/cygwin/exec.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/exec.cc b/winsup/cygwin/exec.cc
index b7342d7..a9c4bf3 100644
--- a/winsup/cygwin/exec.cc
+++ b/winsup/cygwin/exec.cc
@@ -1,7 +1,7 @@
/* exec.cc: exec system call support.
Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008,
- 2009, 2011, 2012 Red Hat, Inc.
+ 2009, 2011, 2012, 2015 Red Hat, Inc.
This file is part of Cygwin.
@@ -76,7 +76,7 @@ execlp (const char *file, const char *arg0, ...)
va_end (args);
MALLOC_CHECK;
return spawnve (_P_OVERLAY | _P_PATH_TYPE_EXEC,
- find_exec (file, buf, "PATH=", FE_NNF) ?: "",
+ find_exec (file, buf, "PATH", FE_NNF) ?: "",
(char * const *) argv, cur_environ ());
}
@@ -102,7 +102,7 @@ execvp (const char *file, char * const *argv)
MALLOC_CHECK;
return spawnve (_P_OVERLAY | _P_PATH_TYPE_EXEC,
- find_exec (file, buf, "PATH=", FE_NNF) ?: "",
+ find_exec (file, buf, "PATH", FE_NNF) ?: "",
argv, cur_environ ());
}
@@ -113,7 +113,7 @@ execvpe (const char *file, char * const *argv, char *const *envp)
MALLOC_CHECK;
return spawnve (_P_OVERLAY | _P_PATH_TYPE_EXEC,
- find_exec (file, buf, "PATH=", FE_NNF) ?: "",
+ find_exec (file, buf, "PATH", FE_NNF) ?: "",
argv, envp);
}