Browse Source

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.
master
freesource 23 years ago
parent
commit
f256edcc87
  1. 13
      BootRoot/Yard.pm

13
BootRoot/Yard.pm

@ -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…
Cancel
Save