diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-01-31 21:49:39 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-01-31 21:49:39 +0000 |
commit | 4b84e3dceab3c8a9004ae2f2aac53741ce24b308 (patch) | |
tree | e59f6d7794be8b844e72f46047928502891f2bc0 /winsup/cygwin/dlfcn.cc | |
parent | fd34affe5d4d0ee0a168ea6d721eb9d037305d92 (diff) | |
download | cygnal-4b84e3dceab3c8a9004ae2f2aac53741ce24b308.tar.gz cygnal-4b84e3dceab3c8a9004ae2f2aac53741ce24b308.tar.bz2 cygnal-4b84e3dceab3c8a9004ae2f2aac53741ce24b308.zip |
* dlfcn.cc (check_path_access): Call find_exec with FE_DLL option.
* path.h (enum fe_types): Add FE_DLL value.
* spawn.cc (std_suffixes): Remove.
(exe_suffixes): New suffix_info for executing files.
(dll_suffixes): New suffix_info for searching shared libraries.
(perhaps_suffix): Add opt argument. Use dll_suffixes if FE_DLL
option is given, exe_suffixes otherwise.
(find_exec): Propagate opt argument to perhaps_suffix. Drop suffix
check when testing execute permission.
(spawn_guts): Call perhaps_suffix with FE_NADA opt argument.
Diffstat (limited to 'winsup/cygwin/dlfcn.cc')
-rw-r--r-- | winsup/cygwin/dlfcn.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dlfcn.cc b/winsup/cygwin/dlfcn.cc index 5d0fb6d8f..5bea77419 100644 --- a/winsup/cygwin/dlfcn.cc +++ b/winsup/cygwin/dlfcn.cc @@ -37,7 +37,7 @@ set_dl_error (const char *str) inline const char * __stdcall check_path_access (const char *mywinenv, const char *name, path_conv& buf) { - return find_exec (name, buf, mywinenv, FE_NNF | FE_NATIVE | FE_CWD); + return find_exec (name, buf, mywinenv, FE_NNF | FE_NATIVE | FE_CWD | FE_DLL); } /* Search LD_LIBRARY_PATH for dll, if it exists. |