$_= ($no_chdir ? $dir_name : $dir_rel ); # $_
# prune may happen here
$prune= 0;
+ # guarantee lstat for directory
+ lstat( $dir_name );
{ &$wanted_callback }; # protect against wild "next"
next if $prune;
}
s|/\.$||;
}
}
+ # guarantee lstat at return to directory
+ lstat( $dir_name );
{ &$wanted_callback }; # protect against wild "next"
}
else {