From 6a6ad273bb1d9e53835c045ff09fa222bfd9c0a8 Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Thu, 26 Oct 2006 12:03:35 +0000 Subject: * make the CGI not croak if a password file is not readable. -- niko --- lib/Smokeping/probes/passwordchecker.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Smokeping/probes/passwordchecker.pm') diff --git a/lib/Smokeping/probes/passwordchecker.pm b/lib/Smokeping/probes/passwordchecker.pm index d1cc128..74b0bf7 100644 --- a/lib/Smokeping/probes/passwordchecker.pm +++ b/lib/Smokeping/probes/passwordchecker.pm @@ -97,7 +97,7 @@ sub probevars { _example => '/some/place/secret', _sub => sub { my $val = shift; - -r $val or return "ERROR: password file $val is not readable."; + -r $val or $ENV{SERVER_SOFTWARE} or return "ERROR: password file $val is not readable."; return undef; }, }, -- cgit v1.2.3-24-g4f1b