On 05 Feb 2018 17:19, walter harms wrote: > Am 05.02.2018 17:13, schrieb Mike Frysinger: > > Make it clear that the delimiters in LD_LIBRARY_PATH cannot be escaped > > so people don't try various methods (like \:) to workaround it. > > > > --- a/man8/ld.so.8 > > +++ b/man8/ld.so.8 > > @@ -271,7 +271,8 @@ This is useful when using a debugger. > > .B LD_LIBRARY_PATH > > A list of directories in which to search for > > ELF libraries at execution time. > > -The items in the list are separated by either colons or semicolons. > > +The items in the list are separated by either colons or semicolons, > > +and there is no support for escaping either separator. > > Similar to the > > .B PATH > > environment variable. > > I am not sure that i understand that. You say that a libname like > libfoo.1.2:3 is unparseable ? i think you're confusing LD_LIBRARY_PATH with other variables like LD_PRELOAD. my patch here is for the former, and that only loads search paths (i.e. directories), not files. however, you're correct in that LD_PRELOAD="libfoo.1.2:3" would not work if the file was literally named "libfoo.1.2:3". it would search for "libfoo.1.2" and "3", and there is no way to change that behavior. i'll send another patch. -mike
Attachment:
signature.asc
Description: Digital signature