Bug 60511

Summary: Trailing : on LD_LIBRARY_PATH puts . in the path
Product: [Retired] Red Hat Linux Reporter: Havoc Pennington <hp>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: fweimer
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-02-28 20:09:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Havoc Pennington 2002-02-28 20:09:23 UTC
Not sure if this is a bug or intended behavior:

$ mkdir /tmp/testing
$ cd /tmp/testing
$ touch libc.so
$ touch libc.so.6
$ LD_LIBRARY_PATH=. ls
ls: error while loading shared libraries: ./libc.so.6: file too short
$ LD_LIBRARY_PATH=/usr/lib ls
libc.so  libc.so.6
$ LD_LIBRARY_PATH=/usr/lib: ls
ls: error while loading shared libraries: libc.so.6: file too short
$ 

People do "LD_LIBRARY_PATH=/foo:$LD_LIBRARY_PATH" in scripts pretty often.

Comment 1 Jakub Jelinek 2002-03-04 14:17:03 UTC
According to Ulrich, this is mandated by ELF gABI:
http://sources.redhat.com/ml/libc-hacker/2002-02/msg00124.html