]> git.pld-linux.org Git - packages/glibc.git/commitdiff
- patch for removing broken symlinks.
authorkloczek <kloczek@pld-linux.org>
Sat, 27 Feb 1999 03:24:42 +0000 (03:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ldconfig-bklinks.patch -> 1.1

ldconfig-bklinks.patch [new file with mode: 0644]

diff --git a/ldconfig-bklinks.patch b/ldconfig-bklinks.patch
new file mode 100644 (file)
index 0000000..81a6d3e
--- /dev/null
@@ -0,0 +1,19 @@
+--- ldconfig-970926/ldconfig.c.ewt     Tue Oct 21 13:44:27 1997
++++ ldconfig-970926/ldconfig.c Tue Oct 21 13:45:37 1997
+@@ -182,8 +182,14 @@
+           *islink = S_ISLNK(statbuf.st_mode);
+           /* then try opening it */
+-          if (!(file = fopen(buff, "rb")))
+-              warn("can't open %s (%s), skipping", buff, strerror(errno));
++          if (!(file = fopen(buff, "rb"))) {
++              if (*islink) {
++                  if (strstr(buff, ".so."))
++                      unlink(buff);
++              } else {
++                  warn("can't open %s (%s), skipping", buff, strerror(errno));
++              }
++          }
+           else
+           {
+               /* now make sure it's a shared library */
This page took 0.060201 seconds and 4 git commands to generate.