Index: scanelf.c =================================================================== RCS file: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v retrieving revision 1.85 diff -u -r1.85 scanelf.c --- scanelf.c 25 Jul 2005 23:31:32 -0000 1.85 +++ scanelf.c 19 Sep 2005 12:31:14 -0000 @@ -498,9 +498,9 @@ } \ *found_needed = 1; \ } else { \ - if (!strcmp(find_lib, needed)) { \ + if (!strncmp(find_lib, needed, strlen(find_lib))) { \ *found_lib = 1; \ - return (be_wewy_wewy_quiet ? NULL : find_lib); \ + return (be_wewy_wewy_quiet ? NULL : needed); \ } \ } \ } \