This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][BZ 17251] Calculate RPATH $ORIGIN from absolute path


On 08/12/2014 06:16 PM, Brennan Shacklett wrote:
I used the implementation of dl_realpath from sysdeps/tile/dl-runtime.c as the
generic implementation, and extended it with lstat and readlink in the linux
version. This means the bug is still present on other systems than linux (the
generic implementation only returns an absolute path, it doesn't do anything
with symlinks), but if there is a way to get the generic version to follow
symlinks on all systems please let me know.

You use PATH_MAX in the generic code which is, I believe, not available on Hurd.

I'm also not sure if the current behavior is buggy. Maybe it does not compose well, but in some scenarios, it is exactly what is needed. Applying this patch could break existing programs.

--
Florian Weimer / Red Hat Product Security


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]