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:
parent
04354d29d3
commit
f256edcc87
@ -2342,10 +2342,15 @@ sub check_nss {
|
|||||||
info(0, "You're using $libc\n");
|
info(0, "You're using $libc\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
## Have no idea why this was being done, must have been true in
|
## glibc 2.2 uses version 2 for its services
|
||||||
## the historic past as noted above. --freesource
|
##
|
||||||
#my($X) = $libc_version + 1;
|
my $X;
|
||||||
my($X) = $libc_version; # better than the return value
|
if ( $libc_version == 2 ) {
|
||||||
|
$X = $libc_version;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$X = $libc_version + 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (-e $nss_conf) {
|
if (-e $nss_conf) {
|
||||||
open(NSS, "<$nss_conf") or die "open($nss_conf): $!";
|
open(NSS, "<$nss_conf") or die "open($nss_conf): $!";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user