projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more ulogd-hosts
[mirror/dsa-nagios.git]
/
dsa-nagios-checks
/
share
/
weak-ssh-keys-check
diff --git
a/dsa-nagios-checks/share/weak-ssh-keys-check
b/dsa-nagios-checks/share/weak-ssh-keys-check
index
7587862
..
a9bd752
100755
(executable)
--- a/
dsa-nagios-checks/share/weak-ssh-keys-check
+++ b/
dsa-nagios-checks/share/weak-ssh-keys-check
@@
-202,6
+202,7
@@
sub from_ssh_key_file ($) {
my $name = shift;
if (open (my $FH, '<', $name)) {
my $key = <$FH>;
my $name = shift;
if (open (my $FH, '<', $name)) {
my $key = <$FH>;
+ close($FH);
if (! defined $key) {
$weird_keyfiles++;
$text .= "cannot read $name properly - empty?\n";
if (! defined $key) {
$weird_keyfiles++;
$text .= "cannot read $name properly - empty?\n";
@@
-336,7
+337,7
@@
sub from_debianorg_places () {
for my $file (grep { ! -d $d.'/'.$_ } readdir(D)) {
next if ($file eq 'README-DSA-BUILDD');
my $f = $d.'/'.$file;
for my $file (grep { ! -d $d.'/'.$_ } readdir(D)) {
next if ($file eq 'README-DSA-BUILDD');
my $f = $d.'/'.$file;
- from_ssh_
key
_file $f if -r $f;
+ from_ssh_
auth
_file $f if -r $f;
};
};
}
};
};
}