mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-23 17:13:22 -05:00
Prettifies the nss thing, and removes uneccessary code.
This commit is contained in:
parent
373fc2de40
commit
df476a38e8
@ -520,28 +520,6 @@ sub extra_links {
|
||||
|
||||
for my $file (keys %Included) {
|
||||
|
||||
|
||||
##### Use replacement file if specified
|
||||
$file = $replaced_by{$file} if defined($replaced_by{$file});
|
||||
|
||||
## Here's where some cool stuff happens
|
||||
## This can be turned on/off from the YardBox
|
||||
## NSS
|
||||
if ( $file =~ m,/nsswitch.conf, ) {
|
||||
|
||||
my @nss_libs = find_nss($file);
|
||||
foreach ( @nss_libs ) {
|
||||
$Included{$_} = 1; # adding on the run
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
## PAM
|
||||
if ( $file =~ m,/pam\.conf|/pam\.d/, ) {
|
||||
info(0,"PAM $file\n");
|
||||
|
||||
}
|
||||
|
||||
# watch for "" - freesource
|
||||
include_file($contents_file, $file) if $file ne "";
|
||||
}
|
||||
@ -2953,7 +2931,7 @@ sub find_nss {
|
||||
next if $entry =~ /^\[/; # ignore action specifiers
|
||||
my($lib) = "/lib/libnss_${entry}.so.${X}";
|
||||
if ( -e $lib) {
|
||||
info(0,"[$line] ='s $lib\n");
|
||||
info(1,"[$line] ='s $lib\n");
|
||||
push(@nss_libs,$lib) if !$nss_repeats{$lib};
|
||||
$nss_repeats{$lib} = 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user