This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Treat symlink as regular file in ldconfig


In a directory, there are

[hjl@gnu ldconfig]$ ls -l
total 20
drwxr-xr-x    2 hjl      hjl          4096 Jul 21 10:07 lib
-rwxr-xr-x    1 hjl      hjl          6192 Jul 21 10:21 libbar-2.2.4.so
lrwxrwxrwx    1 hjl      hjl            19 Jul 21 10:07 libbar-2.3.2.so ->
lib/libbar-2.3.2.so
-rwxr-xr-x    1 hjl      hjl          6208 Jul 21 10:36 libfoo-2.2.4.so
lrwxrwxrwx    1 hjl      hjl            19 Jul 21 09:57 libfoo-2.3.2.so ->
lib/libfoo-2.3.2.so
[hjl@gnu ldconfig]$ ldconfig -nv .
.:
        libfoo.so -> libfoo-2.2.4.so (changed)
        libbar-2.2.4.so -> libbar-2.2.4.so

I think libfoo.so should point to libfoo-2.3.2.so.

[hjl@gnu ldconfig]$ /export/build/gnu/glibc/build-i686-linux/elf/ldconfig -nv .
.:
        libbar-2.2.4.so -> libbar-2.2.4.so
        libfoo.so -> libfoo-2.3.2.so (changed)

I am enclosing a patch here.


H.J.

Attachment: libc-ldconfig-symlink.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]