]> git.pld-linux.org Git - packages/glibc.git/blame - ldconfig-bklinks.patch
- ReleasE: 9
[packages/glibc.git] / ldconfig-bklinks.patch
CommitLineData
28003bcb 1--- ldconfig-970926/ldconfig.c.ewt Tue Oct 21 13:44:27 1997
2+++ ldconfig-970926/ldconfig.c Tue Oct 21 13:45:37 1997
3@@ -182,8 +182,14 @@
4 *islink = S_ISLNK(statbuf.st_mode);
5
6 /* then try opening it */
7- if (!(file = fopen(buff, "rb")))
8- warn("can't open %s (%s), skipping", buff, strerror(errno));
9+ if (!(file = fopen(buff, "rb"))) {
10+ if (*islink) {
11+ if (strstr(buff, ".so."))
12+ unlink(buff);
13+ } else {
14+ warn("can't open %s (%s), skipping", buff, strerror(errno));
15+ }
16+ }
17 else
18 {
19 /* now make sure it's a shared library */
This page took 0.629884 seconds and 4 git commands to generate.