]> bicyclesonthemoon.info Git - ott/bsta/blobdiff - oldlogs.1.pl
viewer redirects to static page; info includes static page;
[ott/bsta] / oldlogs.1.pl
index 7a0959f877e664bebd9edbef5b825e7f8c31d9f8..dbb44211990620cd92b3dbcef1448169997acd76 100644 (file)
@@ -55,7 +55,7 @@ my $logs_total        = ($ARGV[2] =~ /^[0-9]+$/) ? int($&) : LOGS_TOTAL();
 my $logs_uncompressed = ($ARGV[3] =~ /^[0-9]+$/) ? int($&) : LOGS_UNCOMPRESSED();
 
 if (opendir_encoded(my $dir, $log_path)) {
-       while (my $file_name = readdir_decoded($dir)) {
+       while (defined (my $file_name = readdir_decoded($dir))) {
                if ($file_name !~ /\.log$/) {
                        next;
                }