Subject: misc/11961: ld.so(1) manual is misguiding about LD_PRELOAD
To: None <gnats-bugs@gnats.netbsd.org>
From: None <uebayasi@jp.netbsd.org>
List: netbsd-bugs
Date: 01/14/2001 20:15:15
>Number: 11961
>Category: misc
>Synopsis: ld.so(1) manual is misguiding about LD_PRELOAD
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 14 20:15:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Masao Uebayashi
>Release: -current (1.5Q)
>Organization:
SOUM Corporation
>Environment:
I'm running NetBSD/1.5Q on i386 machine.
I can't access the box so no "uname -a" here.
>Description:
LD_PRELOAD should be written in "space separated" instead "colon separated"
as described in the manual now.
I'm not fully sure about this, but Solaris's manual says "space separated".
>How-To-Repeat:
See the manual,
$ man rtld
Try some example
$ env LD_PRELOAD="/usr/lib/libposix.so:/usr/lib/libtelnet.so" /usr/bin/id
$ env LD_PRELOAD="/usr/lib/libposix.so /usr/lib/libtelnet.so" /usr/bin/id
>Fix:
--- libexec/ld.aout_so/rtld.1.orig Mon Jan 15 13:09:21 2001
+++ libexec/ld.aout_so/rtld.1 Mon Jan 15 13:13:30 2001
@@ -145,7 +145,7 @@
A colon separated list of directories, overriding the default search path
for shared libraries.
.It Ev LD_PRELOAD
-A colon separated list of shared object filenames to be loaded
+A space separated list of shared object filenames to be loaded
.Em after
the main program but
.Em before
>Release-Note:
>Audit-Trail:
>Unformatted: