* dlfcn.cc (get_full_path_of_dll): Handle non-existent file.

This commit is contained in:
Corinna Vinschen 2010-04-29 13:03:30 +00:00
parent ef3df0bb7d
commit 2b749986ad
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2010-04-29 Corinna Vinschen <corinna@vinschen.de>
* dlfcn.cc (get_full_path_of_dll): Handle non-existent file.
2010-04-29 Corinna Vinschen <corinna@vinschen.de> 2010-04-29 Corinna Vinschen <corinna@vinschen.de>
* mount.cc (struct opt): Add "dos" and "ihash" options. * mount.cc (struct opt): Add "dos" and "ihash" options.

View File

@ -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) ?: check_path_access ("/usr/lib", name, real_filename)) == NULL)
real_filename.check (name, PC_SYM_FOLLOW | PC_NOFULL | PC_NULLEMPTY); real_filename.check (name, PC_SYM_FOLLOW | PC_NOFULL | PC_NULLEMPTY);
if (!real_filename.error) if (!real_filename.error && real_filename.exists ())
return true; return true;
set_errno (real_filename.error); set_errno (real_filename.error ?: ENOENT);
return false; return false;
} }