man-db/man-db-2.6.1-so-links.patch
Peter Schiffer b2bffc6b83 - resolves: #677669
added support for wildcards in path
- resolves: #693458
  fixed error with .so links
2012-04-24 15:32:21 +02:00

17 lines
533 B
Diff

diff -up man-db-2.6.1/src/ult_src.c.better_so man-db-2.6.1/src/ult_src.c
--- man-db-2.6.1/src/ult_src.c.better_so 2012-02-05 14:21:24.000000000 +0100
+++ man-db-2.6.1/src/ult_src.c 2012-04-24 13:55:03.770469147 +0200
@@ -345,6 +345,12 @@ const char *ult_src (const char *name, c
NULL);
free (include);
+ if (access (base, F_OK) != 0) {
+ debug ("ult_src: original path of .so link: %s doesn't exist\n",
+ base);
+ return NULL;
+ }
+
debug ("ult_src: points to %s\n", base);
recurse++;