misc/115588: rc.d/ldconfig doesnt handle ldconfig_local_dirs
properly
Tim Newsham
newsham at lava.net
Thu Aug 16 13:50:01 PDT 2007
>Number: 115588
>Category: misc
>Synopsis: rc.d/ldconfig doesnt handle ldconfig_local_dirs properly
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Aug 16 20:50:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Tim Newsham
>Release: FreeBSD6.2-STABLE (early august)
>Organization:
>Environment:
FreeBSD hpsux.x0d99.com 6.2-STABLE FreeBSD 6.2-STABLE #1: Fri Aug 3 18:39:42 HST 2007 root at hpsux.x0d99.com:/usr/src/sys/amd64/compile/THENEWSH amd64
>Description:
The /etc/rc.d/ldconfig script does not properly handle ldconfig_local_dirs or ld_config_local32_dirs paths. If you try to run the script with either of these set in /etc/rc.conf (ie. ldconfig_local32_dirs=/usr/local/lib32) the screen will be filled with garbage. I believe this is due to:
if [ -n "${_files}" ]; then
ldconfig_paths="${ldconfig_paths} `cat ${_files} | sort -u`"
fi
which sets the ldconfig_paths variable to the contents of all of the library files. This variable is later echoed to the screen. Perhaps the "cat" was meant to be an "echo"?
Tim
>How-To-Repeat:
edit /etc/rc.conf. Add a line
ldconfig_local_dirs=/usr/local/lib
save the file and run
sh /etc/rc.d/ldconfig restart
repeat with ldconfig_local32_dirs on an em64_t/amd64 machine.
>Fix:
Change cat to echo? I'm not sure I understand what the script was trying to do.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list