diff --git a/check_contentage b/check_contentage index 5159b14..3e6611b 100644 --- a/check_contentage +++ b/check_contentage @@ -116,7 +116,7 @@ sub check_dir($$$$){ print "Working in $dir\n" if ($DEBUG); for my $file (readdir(DIR)) { # if ($recursive){ -# &check_dir("$dir/$file",$secwarn,$seccrit) if (-d "$dir/$_"); +# &check_dir("$dir/$file",$secwarn,$seccrit) if (-d "$dir/$file"); # } $count++; next if (! -f "$dir/$file"); @@ -127,7 +127,7 @@ sub check_dir($$$$){ my $mtime=stat("$dir/$file")->mtime; my $age = time() - $mtime; my $time=strftime("%a %b %e %H:%M:%S %Y",localtime($mtime)); - print "$_ : $mtime : $age sec\n" if ($DEBUG); + print "$dir/$file : $mtime : $age sec\n" if ($DEBUG); if ( $age < 0 ){ $res{'errorstr'}.="$dir/$file was modified in the future!\n"; $res{'level'}=$ERRORS{'CRITICAL'};