X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=420a1b6e91ea9c7f4d600dcd240b0aa360cde077;hp=11143b198c6da35850928c1b2f77eb6861a2bddb;hb=42ddf87fb0f83ca4b7897e2c3e486c571494d978;hpb=26ad3f96fbc541fcd32ac772462f793bc619e275 diff --git a/blosxom.cgi b/blosxom.cgi index 11143b1..420a1b6 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -555,6 +555,7 @@ $entries = sub { sub { my $curr_depth = $File::Find::dir =~ tr[/][]; return if $depth and $curr_depth > $depth; + return if !-r $File::Find::name; if ( @@ -563,7 +564,7 @@ $entries = sub { =~ m!^$datadir/(?:(.*)/)?(.+)\.$file_extension$! # not an index, .file, and is readable - and $2 ne 'index' and $2 !~ /^\./ and ( -r $File::Find::name ) + and $2 ne 'index' and $2 !~ /^\./ ) { @@ -592,7 +593,7 @@ $entries = sub { } # not an entries match - elsif ( !-d $File::Find::name and -r $File::Find::name ) { + elsif ( !-d $File::Find::name ) { $others{$File::Find::name} = stat($File::Find::name)->mtime; } },