X-Git-Url: https://git.distorted.org.uk/~mdw/tgal/blobdiff_plain/f615860793ef624269d888e88385647c73043938..ebe1911575aea114f2b4ace142f41c5049b8e705:/mason/.perl-lib/TrivGal.pm diff --git a/mason/.perl-lib/TrivGal.pm b/mason/.perl-lib/TrivGal.pm index ea3b47a..8673b75 100644 --- a/mason/.perl-lib/TrivGal.pm +++ b/mason/.perl-lib/TrivGal.pm @@ -317,7 +317,7 @@ sub listdir ($) { if ($item && $comment) { $item->comment($comment); } close $f; } else { - my $st = stat "$path/$e"; + my $st = stat $path; unless ($st->mode&0004) { return ([], [], undef); } opendir $d, $path;