FreeBSD Bugzilla – Attachment 184747 Details for
Bug 221032
Absolute pathnames not working with libmap.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to enable absolute pathname as target in libmap.conf
rtld.c.patch (text/plain), 960 bytes, created by
Tatu Kilappa
on 2017-07-26 18:28:51 UTC
(
hide
)
Description:
Patch to enable absolute pathname as target in libmap.conf
Filename:
MIME Type:
Creator:
Tatu Kilappa
Created:
2017-07-26 18:28:51 UTC
Size:
960 bytes
patch
obsolete
>--- libexec/rtld-elf/rtld.c.original 2017-07-26 20:06:12.127013000 +0200 >+++ libexec/rtld-elf/rtld.c 2017-07-26 20:17:58.526580000 +0200 >@@ -1516,20 +1516,21 @@ > bool nodeflib, objgiven; > > objgiven = refobj != NULL; >- if (strchr(xname, '/') != NULL) { /* Hard coded pathname */ >- if (xname[0] != '/' && !trust) { >+ >+ if (libmap_disable || !objgiven || >+ (name = lm_find(refobj->path, xname)) == NULL) >+ name = (char *)xname; >+ >+ if (strchr(name, '/') != NULL) { /* Hard coded pathname */ >+ if (name[0] != '/' && !trust) { > _rtld_error("Absolute pathname required for shared object \"%s\"", >- xname); >+ name); > return NULL; > } > return (origin_subst(__DECONST(Obj_Entry *, refobj), >- __DECONST(char *, xname))); >+ __DECONST(char *, name))); > } > >- if (libmap_disable || !objgiven || >- (name = lm_find(refobj->path, xname)) == NULL) >- name = (char *)xname; >- > dbg(" Searching for \"%s\"", name); > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221032
: 184747