1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-03-04 11:53:26 -05:00

Fixed nss test so that it checks for the right libnss_(service).so.$version

if glibc 2.2 is used.  Glibc 2.0 and 2.1 used 1 and 2 respectively, but 2.2
uses 2.
This commit is contained in:
freesource 2001-11-27 20:56:09 +00:00
parent 04354d29d3
commit f256edcc87

View File

@ -2342,10 +2342,15 @@ sub check_nss {
info(0, "You're using $libc\n");
}
## Have no idea why this was being done, must have been true in
## the historic past as noted above. --freesource
#my($X) = $libc_version + 1;
my($X) = $libc_version; # better than the return value
## glibc 2.2 uses version 2 for its services
##
my $X;
if ( $libc_version == 2 ) {
$X = $libc_version;
}
else {
$X = $libc_version + 1;
}
if (-e $nss_conf) {
open(NSS, "<$nss_conf") or die "open($nss_conf): $!";