New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pod::Html infinite recursion #6963
Comments
From ajohnson@nvidia.comCreated by ajohnson@nvidia.comThis is a bug report for perl from ajohnson@nvidia.com, ----------------------------------------------------------------- (In our environment, there is a symbolic link to the "top of source One way to deal with this is to prune the recursion on any directory that Another reasonable way to deal with this is to add an option not to follow One could make the recursion finite by pruning visited directories, but I'm perfectly happy to implement the fix if somebody can tell me what the ----- perl-5.8.2-podscan.patch ----- Inline Patchdiff -Naur perl-5.8.2/lib/Pod/Html.pm perl-5.8.2-podscan/lib/Pod/Html.pm
--- perl-5.8.2/lib/Pod/Html.pm Tue Sep 30 10:11:02 2003
+++ perl-5.8.2-podscan/lib/Pod/Html.pm Tue Nov 11 17:31:19 2003
@@ -921,7 +921,9 @@
opendir(DIR, $dir) ||
die "$0: error opening directory $dir: $!\n";
while (defined($_ = readdir(DIR))) {
- if (-d "$dir/$_" && $_ ne "." && $_ ne "..") { # directory
+ if (-d "$dir/$_" && $_ ne "." && $_ ne ".." &&
+ (!-l "$dir/$_" || !/^\./)
+ ) { # directory
$Pages{$_} = "" unless defined $Pages{$_};
$Pages{$_} .= "$dir/$_:";
push(@subdirs, $_); Perl Info
|
From @rgsajohnson@nvidia.com (via RT) wrote:
Thinking about this, pruning hidden directories -- turned on by default,
|
From rra@stanford.eduRafael Garcia-Suarez <rgarciasuarez@free.fr> writes:
I don't have particularly strong opinions on Pod::Html, as I've never -- |
From ajohnson@nvidia.comHere's the patch that implements Rafael's suggestion: ----- perl-5.8.2-podhid.patch ----- Inline Patchdiff -Naur perl-5.8.2/lib/Pod/Html.pm perl-5.8.2-podhid/lib/Pod/Html.pm
--- perl-5.8.2/lib/Pod/Html.pm Tue Sep 30 10:11:02 2003
+++ perl-5.8.2-podhid/lib/Pod/Html.pm Fri Dec 12 13:35:03 2003
@@ -78,6 +78,20 @@
Displays the usage message.
+=item hiddendirs
+
+ --hiddendirs
+ --nohiddendirs
+
+Include hidden directories in the search for POD's in podpath if recurse
+is set.
+The default is not to traverse any directory whose name begins with C<.>.
+See L</"podpath"> and L</"recurse">.
+
+[This option is for backward compatibility only.
+It's hard to imagine that one would usefully create a module with a
+name component beginning with C<.>.]
+
=item htmldir
--htmldir=name
@@ -213,6 +227,7 @@
my $Recurse;
my $Quiet;
+my $HiddenDirs;
my $Verbose;
my $Doindex;
@@ -604,6 +619,7 @@
--flush - flushes the item and directory caches.
--[no]header - produce block header/footer (default is no headers).
--help - prints this message.
+ --hiddendirs - search hidden directories in podpath
--htmldir - directory for resulting HTML files.
--htmlroot - http-server base directory from which all relative paths
in podpath stem (default is /).
@@ -634,6 +650,7 @@
sub parse_command_line {
my
-----Original Message----- Rafael Garcia-Suarez <rgarciasuarez@free.fr> writes:
I don't have particularly strong opinions on Pod::Html, as I've never -- |
From @rgsAnders Johnson wrote:
Thank you very much. I've applied it to the sources of the development |
@rgs - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#24610 (status was 'resolved')
Searchable as RT24610$
The text was updated successfully, but these errors were encountered: