]>
Commit | Line | Data |
---|---|---|
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 */ |