Subject: pkg/15773: R-1.4.1 help.start() fails
To: None <gnats-bugs@gnats.netbsd.org>
From: Ray Brownrigg <Ray.Brownrigg@mcs.vuw.ac.nz>
List: netbsd-bugs
Date: 03/01/2002 15:35:48
>Number:         15773
>Category:       pkg
>Synopsis:       help.start() fails due to incorrect permissions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 28 18:36:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ray Brownrigg
>Release:        NetBSD 1.5ZA
>Organization:
Victoria University of Wellington, NZ
>Environment:
System: NetBSD turakirae.mcs.vuw.ac.nz 1.5ZA NetBSD 1.5ZA (MCS_WORKSTATION) #7: Tue Feb 5 21:31:08 NZDT 2002 mark@turakirae.mcs.vuw.ac.nz:/src/work/src/sys/arch/i386/compile/MCS_WORKSTATION i386
Architecture: i386
Machine: i386
>Description:
	During the installation of R, $INSTALL_DATA is used to install
	(in particular) an html header (doc/html/packages-head.html).
	This header is then copied at run-time into the user's home
	directory for subsequent modification.  However because
	the file permissions allocated by $INSTALL_DATA are 444 by
	default, the script that copies and then modifies the file
	fails and, as a result, the HTML help is not available.
>How-To-Repeat:
	echo "help.start()" | R --vanilla
>Fix:
	A suggested fix is to explicitly change the modes on the file
	that is copied into the user's area.  A patch file to do this
	looks like:
	----
--- share/sh/help-links.sh.orig	Wed May 23 02:46:18 2001
+++ share/sh/help-links.sh	Fri Mar  1 12:20:26 2002
@@ -35,6 +35,7 @@
 rm -f ${PKGLIST}
 rm -f ${SEARCHINDEX}
 cp ${R_HOME}/doc/html/packages-head.html ${PKGLIST}
+chmod 644 ${PKGLIST}
 
 get_unique () {
   if test -r ${1}; then
>Release-Note:
>Audit-Trail:
>Unformatted: