diff --git a/agestat/agestat.pl b/agestat/agestat.pl index 6065df2..f328fd5 100755 --- a/agestat/agestat.pl +++ b/agestat/agestat.pl @@ -58,6 +58,7 @@ my @hist; sub wanted { my $st = lstat($_); + return unless $st; my $age = $now - ( $opts{atime} ? $st->atime : $opts{mtime} ? $st->mtime :