* dlfcn.cc (get_full_path_of_dll): Handle non-existent file.
This commit is contained in:
parent
ef3df0bb7d
commit
2b749986ad
|
@ -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>
|
||||
|
||||
* mount.cc (struct opt): Add "dos" and "ihash" options.
|
||||
|
|
|
@ -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)
|
||||
if (!real_filename.error && real_filename.exists ())
|
||||
return true;
|
||||
|
||||
set_errno (real_filename.error);
|
||||
set_errno (real_filename.error ?: ENOENT);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue