diff --git a/lynis_report.pl b/lynis_report.pl
index 8399dfc..cda247c 100755
--- a/lynis_report.pl
+++ b/lynis_report.pl
@@ -344,7 +344,11 @@ END
if ((exists($lynis_report_data{'deleted_file[]'})) and ($lynis_report_data{'deleted_file[]'} ne "")) {
if (ref($lynis_report_data{'deleted_file[]'}) eq 'ARRAY') {
print OUT "\t\t\t\t
deleted files (".scalar(@{$lynis_report_data{'deleted_file[]'}})."): \n";
- print OUT "\t\t\t\t\n";
+ if (scalar(@{$lynis_report_data{'deleted_file[]'}}) < 10) {
+ print OUT "\t\t\t\t\n";
+ } else {
+ print OUT "\t\t\t\t\n";
+ }
foreach my $f ( @{$lynis_report_data{'deleted_file[]'}} ) { print OUT "\t\t\t\t\t$f\n"; }
} else {
warn colored("Deleted files object not an array! \n", "yellow");
@@ -421,7 +425,11 @@ END
if ((exists($lynis_report_data{'plugin_processes_allprocesses'})) and ($lynis_report_data{'plugin_processes_allprocesses'} ne "")) {
print OUT "\t\t\t\tPlugin-processes: discovered processes: \n";
if (ref($lynis_report_data{'plugin_processes_allprocesses'}) eq 'ARRAY') {
- print OUT "\t\t\t\t\t\n";
+ if (scalar(@{$lynis_report_data{'plugin_processes_allprocesses'}}) < 10) {
+ print OUT "\t\t\t\t\t\t\n";
+ } else {
+ print OUT "\t\t\t\t\t\n";
+ }
foreach my $p ( sort @{$lynis_report_data{'plugin_processes_allprocesses'}} ) { print OUT "\t\t\t\t\t\t$p\n"; }
print OUT "\t\t\t\t\t \n";
} else {
@@ -527,13 +535,21 @@ END
log directories:
END
if (ref($lynis_report_data{'log_directory[]'}) eq 'ARRAY') {
- print OUT "\t\t\t\t\t\n";
+ if (scalar(@{$lynis_report_data{'log_directory[]'}}) < 10) {
+ print OUT "\t\t\t\t\t\n";
+ } else {
+ print OUT "\t\t\t\t\t\n";
+ }
foreach my $ld ( @{$lynis_report_data{'log_directory[]'}} ) { print OUT "\t\t\t\t\t\t$ld\n"; }
print OUT "\t\t\t\t\t \n";
}
print OUT "\t\t\t\t\topen log files: \n";
if (ref($lynis_report_data{'open_logfile[]'}) eq 'ARRAY') {
- print OUT "\t\t\t\t\t\n";
+ if (scalar(@{$lynis_report_data{'open_logfile[]'}}) < 10) {
+ print OUT "\t\t\t\t\t\n";
+ } else {
+ print OUT "\t\t\t\t\t\n";
+ }
foreach my $lf ( @{$lynis_report_data{'open_logfile[]'}} ) { print OUT "\t\t\t\t\t\t$lf\n"; }
print OUT "\t\t\t\t\t \n";
}