From e18884150b1779e12d5e2a5008a5a28cc9370ffd Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 18 Jul 2020 10:52:50 -0700 Subject: [PATCH] Remove message about PAM perl module not being loaded --- miniserv.pl | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/miniserv.pl b/miniserv.pl index f65e9d031..aac5d44b8 100755 --- a/miniserv.pl +++ b/miniserv.pl @@ -170,16 +170,11 @@ elsif (!$config{'no_pam'}) { "PAM initialization of Authen::PAM failed"); } } - else { - push(@startup_msg, - "Perl module Authen::PAM needed for PAM is ". - "not installed : $@"); - } } if ($config{'pam_only'} && !$use_pam) { foreach $msg (@startup_msg) { - print STDERR $msg,"\n"; - } + print STDERR $msg,"\n"; + } print STDERR "PAM use is mandatory, but could not be enabled!\n"; print STDERR "no_pam and pam_only both are set!\n" if ($config{no_pam}); exit(1);