Bug 86032 - trailing spaces in /etc/ld.so.conf entries are not ignored
trailing spaces in /etc/ld.so.conf entries are not ignored
Status: CLOSED UPSTREAM
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
9
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-03-12 13:01 EST by Daniel Pavel
Modified: 2016-11-24 10:05 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-04-17 00:03:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Daniel Pavel 2003-03-12 13:01:48 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030312

Description of problem:
Trailing spaces in /etc/ld.so.conf entries are not ignored when checking for
libraries (as seen in strace output).

An entry like

"/usr/local/lib "

causes the dynamic library loader to check for the existence of the directory
"/usr/local/lib " instead of "/usr/local/lib".

Version-Release number of selected component (if applicable):
glibc-2.3.1-46

How reproducible:
Always

Steps to Reproduce:
1. Append trailing spaces at one of the entries in /etc/ld.so.conf (say
/usr/local/lib)
2. Run ldconfig
3. Try running a program that requires a dynamic executable present in the
directory whose entry has been modified


Actual Results:  The program fails to load, cause: dynamic library not found.

Expected Results:  The program should have loaded (i.e. ld should have ignored
the trailing spaces in /etc/ld.so.conf)
Comment 1 Ulrich Drepper 2003-04-17 00:03:48 EDT
This has been changed in the CVS glibc version.  The next binary we provide will
probably already have the change.
Comment 2 Ulrich Drepper 2003-11-04 16:34:05 EST
Should be fixed in RHL9 errata, test version at

  ftp://people.redhat.com/jakub/glibc/errata/2.3.2-27.9.4/           
                                                                    

Note You need to log in before you can comment on or make changes to this bug.