1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-02-23 09:03:23 -05:00

Fixes a bug where libc was being tested in the mount directory rather than /lib, and undefs

%pam_repeats.  This allows multiple invocations to work properly.
This commit is contained in:
freesource 2001-11-28 20:38:12 +00:00
parent 5691d3ca77
commit 4f7fbda058

View File

@ -179,6 +179,7 @@ sub read_contents_file {
undef %strippable;
undef %lib_needed_by;
undef @Libs;
undef %pam_repeats;
}
$contents_file_tmp = $contents_file;
@ -2891,7 +2892,7 @@ sub find_nss {
my($nss_conf) = @_;
my @nss_libs;
my($libc) = yard_glob("$mount_point/lib/libc-*"); ## removed 2
my($libc) = yard_glob("/lib/libc-*"); ## removed 2
my($libc_version) = $libc =~ m|/lib/libc-\d+\.(\d)|; ## changed 2 & .
if (!defined($libc_version)) {
info(0,"\nParsing $nss_conf:\n");