ld.so.8: Explain than empty entry in LD_LIBRARY_PATH means cwd

If this was ever going to change the test case is very simple:

$ cd /tmp
$ touch libc.so.6
$ LD_LIBRARY_PATH=: sh
sh: error while loading shared libraries: libc.so.6: file too short

Signed-off-by: Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Arkadiusz Drabczyk 2020-06-24 00:59:10 +02:00 committed by Michael Kerrisk
parent 09caeefd5c
commit af04113d0c
1 changed files with 1 additions and 0 deletions

View File

@ -319,6 +319,7 @@ 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,
and there is no support for escaping either separator.
A zero-length directory name indicates the current working directory.
.IP
This variable is ignored in secure-execution mode.
.IP