diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-06-14 15:10:30 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-06-14 15:10:30 +0400 |
commit | aec297d5d93e0ff7c128b6159f203ead336fd443 (patch) | |
tree | 93045f22d19bd44aa18cece08539ba07984b8073 /winsup/cygwin/dlfcn.cc | |
parent | 75172e03ac0825c62845d3cd6d49a1ace9d5171f (diff) |
* dlfcn.cc (get_full_path_of_dll): Revert patch from 2010-04-29.
Diffstat (limited to 'winsup/cygwin/dlfcn.cc')
-rw-r--r-- | winsup/cygwin/dlfcn.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/dlfcn.cc b/winsup/cygwin/dlfcn.cc index f63956365..fb3df2c5f 100644 --- a/winsup/cygwin/dlfcn.cc +++ b/winsup/cygwin/dlfcn.cc @@ -58,10 +58,10 @@ get_full_path_of_dll (const char* str, path_conv &real_filename) ?: check_path_access ("/usr/lib", name, real_filename)) == NULL) real_filename.check (name, PC_SYM_FOLLOW | PC_NOFULL | PC_NULLEMPTY); - if (!real_filename.error && real_filename.exists ()) + if (!real_filename.error) return true; - set_errno (real_filename.error ?: ENOENT); + set_errno (real_filename.error); return false; } |