This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: PATCH: Handle symlink to directory in ldconfig.
- From: Hideki IWAMOTO <h-iwamoto at kit dot hi-ho dot ne dot jp>
- To: hjl at lucon dot org
- Cc: libc-alpha at sources dot redhat dot com
- Date: Tue, 22 Jun 2004 22:53:33 +0900
- Subject: Re: PATCH: Handle symlink to directory in ldconfig.
This is about the patch which you sent to libc-alpha about three years ago.
http://sources.redhat.com/ml/libc-alpha/2001-05/msg00084.html
This change causes a problem, when option -r is used.
Even when option -r is used, stat64 is performed using the original root directory.
This makes it impossible to use the paths which are not in the original root directory.
This is an example.
> tree tmproot/
tmproot/
|-- etc
| `-- ld.so.conf
|-- lib
`-- usr
|-- bar
| `-- lib
|-- foo
| `-- lib
|-- lib
`-- local
`-- lib
10 directories, 1 file
> cat tmproot/etc/ld.so.conf
/usr/local/lib
/usr/foo/lib
> id -u
500
> ls /usr/foo/lib /usr/bar/lib
ls: /usr/foo/lib: No such file or directory
ls: /usr/bar/lib: No such file or directory
> ./build-glibc/elf/ldconfig -v -r tmproot /usr/bar/lib
./build-glibc/elf/ldconfig: Can't stat /usr/bar/lib: No such file or directory
./build-glibc/elf/ldconfig: Can't stat /usr/foo/lib: No such file or directory
/usr/local/lib:
/lib:
/usr/lib:
----
Hideki IWAMOTO h-iwamoto@kit.hi-ho.ne.jp