* 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.
This commit is contained in:
Corinna Vinschen
2015-02-11 13:15:59 +00:00
parent 9ab96e0fde
commit 117b1b1edb
7 changed files with 72 additions and 102 deletions

View File

@@ -1,6 +1,6 @@
/* winf.h
Copyright 2006, 2007, 2009, 2011, 2013 Red Hat, Inc.
Copyright 2006, 2007, 2009, 2011, 2013, 2015 Red Hat, Inc.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
@@ -41,7 +41,7 @@ class av
cfree (argv);
}
}
int unshift (const char *what, int conv = 0) __reg2;
int unshift (const char *what) __reg2;
operator char **() {return argv;}
void all_calloced () {calloced = argc;}
void replace0_maybe (const char *arg0)