Thread (1 message) 1 message, 1 author, 2018-02-05

Re: [PATCH] ld.so(8): make lack of separator escaping explicit

From: Mike Frysinger <hidden>
Date: 2018-02-05 21:44:55

On 05 Feb 2018 17:19, walter harms wrote:
Am 05.02.2018 17:13, schrieb Mike Frysinger:
quoted
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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help