Skip to content
Snippets Groups Projects
Commit 6ae36e26 authored by Vivek Das Mohapatra's avatar Vivek Das Mohapatra
Browse files

Found a bug in LDPATH + /prefix path handling - commented

Not encountered this bug in practice but it is potentially there
and waiting for us.
parent 25a00ab9
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
...@@ -577,6 +577,7 @@ search_ldpath (const char *name, const char *ldpath, ldlibs_t *ldlibs, int i) ...@@ -577,6 +577,7 @@ search_ldpath (const char *name, const char *ldpath, ldlibs_t *ldlibs, int i)
// if path resolution succeeds _and_ we can open an acceptable // if path resolution succeeds _and_ we can open an acceptable
// DSO at that location, we're good to go (ldlib_open will // DSO at that location, we're good to go (ldlib_open will
// finish setting up or clearing the needed[] entry for us): // finish setting up or clearing the needed[] entry for us):
// FIXME: this is broken if the target is an absolute symlink
if( realpath( prefix, ldlibs->needed[i].path ) && if( realpath( prefix, ldlibs->needed[i].path ) &&
ldlib_open( ldlibs, name, i ) ) ldlib_open( ldlibs, name, i ) )
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment