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++;