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
[PATCH] Set *.html permissions in installhtml. #12053
Comments
From @craigberryPod::Html::pod2html via the installhtml utility, which is invoked by the install.html make target, has not been explicitly setting permissions on the installed HTML files. Leaving the target permissions to chance means that on some systems they are set appropriately and some not based on various site and platform defaults. "Appropriately" in this case means readable by world/other, so the attached patch sets that explicitly. This should probably be added to the list at [perl #112014]. The patch will also necessitate a version bump to Pod::Html. $ perl -"V" Characteristics of this PERLSHR image: ________________________________________ "... getting out of a sonnet is much more |
From @craigberry0001-Set-.html-permissions-in-installhtml.patchFrom 4d96b7de00193003898c3d6e487c330abf142874 Mon Sep 17 00:00:00 2001
From: "Craig A. Berry" <craigberry@mac.com>
Date: Fri, 13 Apr 2012 12:42:10 -0500
Subject: [PATCH] Set *.html permissions in installhtml.
Pod::Html::pod2html via the installhtml utility, which is invoked
by the install.html make target, had not been explicitly setting
permissions on the installed HTML files. Leaving the target
permissions to chance meant that on some systems they were set
appropriately and some not based on various site and platform
defaults.
"Appropriately" in this case means readable by world/other, so we
now set that explicitly.
---
ext/Pod-Html/lib/Pod/Html.pm | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/ext/Pod-Html/lib/Pod/Html.pm b/ext/Pod-Html/lib/Pod/Html.pm
index c16b657..909b5e9 100644
--- a/ext/Pod-Html/lib/Pod/Html.pm
+++ b/ext/Pod-Html/lib/Pod/Html.pm
@@ -433,6 +433,7 @@ HTMLFOOT
}
print $fhout $output;
close $fhout or die "Failed to close $Htmlfile: $!";
+ chmod 0644, $Htmlfile unless $Htmlfile eq '-';
}
##############################################################################
--
1.7.7.GIT
|
From @cpansproutOn Fri Apr 13 11:43:18 2012, craigberry wrote:
Ricardo Signes applied this as c960cc8. -- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
@cpansprout - Status changed from 'open' to 'resolved' |
From @cpansproutOn Fri Apr 13 11:43:18 2012, craigberry wrote:
Ricardo Signes applied this as c960cc8. -- Father Chrysostomos |
Migrated from rt.perl.org#112440 (status was 'resolved')
Searchable as RT112440$
The text was updated successfully, but these errors were encountered: