Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] ld.so.8: Explain than empty entry in LD_LIBRARY_PATH means cwd
@ 2020-06-23 22:59 Arkadiusz Drabczyk
  2020-06-25  7:16 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Arkadiusz Drabczyk @ 2020-06-23 22:59 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man

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

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

Signed-off-by: Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
---
 man8/ld.so.8 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/man8/ld.so.8 b/man8/ld.so.8
index 9034612..2e98b7f 100644
--- a/man8/ld.so.8
+++ b/man8/ld.so.8
@@ -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
-- 
2.9.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ld.so.8: Explain than empty entry in LD_LIBRARY_PATH means cwd
  2020-06-23 22:59 [PATCH] ld.so.8: Explain than empty entry in LD_LIBRARY_PATH means cwd Arkadiusz Drabczyk
@ 2020-06-25  7:16 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-06-25  7:16 UTC (permalink / raw)
  To: Arkadiusz Drabczyk; +Cc: mtk.manpages, linux-man

Hello Arkadiusz

On 6/24/20 12:59 AM, Arkadiusz Drabczyk wrote:
> If this was ever going to change the test case is very simple:
> 
> /tmp $ touch libc.so.6
> /tmp $ LD_LIBRARY_PATH=: sh
> sh: error while loading shared libraries: libc.so.6: file too short
> 
> Signed-off-by: Arkadiusz Drabczyk <arkadiusz@drabczyk.org>

Thanks for the patch, and the succinct test/demo in the commit 
message!

Patch applied.

Cheers,

Michael
> ---
>  man8/ld.so.8 | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/man8/ld.so.8 b/man8/ld.so.8
> index 9034612..2e98b7f 100644
> --- a/man8/ld.so.8
> +++ b/man8/ld.so.8
> @@ -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
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-23 22:59 [PATCH] ld.so.8: Explain than empty entry in LD_LIBRARY_PATH means cwd Arkadiusz Drabczyk
2020-06-25  7:16 ` Michael Kerrisk (man-pages)

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git