Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2016-06-26
09:01
(cherry-pick) [c30087b04f] Install man pages with permissions 644 instead of 444. check-in: bc80e8a3bf user: jan.nijtmans tags: core-8-5-branch
09:00
(cherry-pick) [c30087b04f] Install man pages with permissions 644 instead of 444. check-in: 5355df3a95 user: jan.nijtmans tags: core-8-6-branch
2016-06-24
16:41 • Closed ticket [c30087b04f]: Unusual and problematic permissions of man pages (44... artifact: 82bb69172e user: max
16:40
[c30087b04f] Install man pages with permissions 644 instead of 444. check-in: 02219cfde2 user: max tags: trunk
16:29 • Ticket [c30087b04f] Unusual and problematic permissions of man pages (444 instea... artifact: 0421d35f3a user: dgp
13:37 • New ticket [c30087b04f]. artifact: af00bc992c user: hanno

Unusual and problematic permissions of man pages (444 instead of 644)

Closed / Fixedc30087b04f5a7837b15a64be02e975222485521aCreated 10 years agoUpdated 10 years ago
Descriptionplain2016-06-24 13:37:44
The tcl installation process on unix systems installs the man pages with the permission mode 444. This is quite unusual and may cause breakage in certain situations (e.g. distribution systems trying to do installations and removals with user permissions).

It's common practice pretty much default to install man pages with 644, therefore I'd suggest that tcl does the same.

In Gentoo there is currently an effort unifying man page permissions:
https://bugs.gentoo.org/show_bug.cgi?id=554260
https://bugs.gentoo.org/show_bug.cgi?id=554258

Trivial Patch:
--- tcl8.6.5/unix/installManPage	2016-03-01 02:59:35.000000000 +0100
+++ tcl8.6.5-1/unix/installManPage	2016-06-24 15:28:50.061168557 +0200
@@ -106,7 +106,7 @@
 	First=$Target
 	sed -e "/man\.macros/r $SrcDir/man.macros" -e "/man\.macros/d" \
 	    $ManPage > $Dir/$First
-	chmod 444 $Dir/$First
+	chmod 644 $Dir/$First
 	$Gzip $Dir/$First
     else
 	ln $SymOrLoc$First$Gz $Dir/$Target$Gz
Referenced by3
  • bc80e8a3bf(cherry-pick) [c30087b04f] Install man pages with permissions 644 instead of 444. check-in2016-06-26 09:01:26
  • 5355df3a95(cherry-pick) [c30087b04f] Install man pages with permissions 644 instead of 444. check-in2016-06-26 09:00:06
  • 02219cfde2[c30087b04f] Install man pages with permissions 644 instead of 444. check-in2016-06-24 16:40:30
dgp Ticket [c30087b04f]: 4 changes [History diff]2016-06-24 16:29:21
maxplain2016-06-24 16:41:45
Thanks, fixed.
Log in (anonymous is fine) to add a comment.