Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 448158

Summary: Nroff script attempts to use PATH commands as opposed to fully-defined ones.
Product: Red Hat Enterprise Linux 5 Reporter: Dan Mahoney <danm>
Component: groffAssignee: Jan Vcelak <jvcelak>
Status: CLOSED ERRATA QA Contact: Iveta Wiedermann <isenfeld>
Severity: low Docs Contact:
Priority: low    
Version: 5.3CC: cward, isenfeld, ovasik, psplicha, tsmetana
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: groff-1.18.1.1-13.el5 Doc Type: Bug Fix
Doc Text:
- open manual page in restricted shell environment - the manual page is not displayed or an warning message about using old character sets appears - updated nroff script to use full paths when invkoing external binaries - the manual pages can be displayed in restricted shell environment
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-28 14:44:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Simple patch to fix. none

Description Dan Mahoney 2008-05-23 20:10:20 UTC
Description of problem:

nroff shell script has incomplete path information.

Version-Release number of selected component (if applicable): 

1.18.1.1

How reproducible:

The nroff shell script, a helper agent for the critical man utility, does not
have full path commands in some places.  This causes it, when used with a
restricted shell that does not have these paths in by default, to either fail to
output a manpage, or to print an erroneous error about the manpage being used in
an old character set, such as:

XXX
XXX WARNING: old character encoding and/or character set
XXX

Steps to Reproduce:
1. Install a package such as rbash (or modify your path such that you have
access to the man command but not iconv and/or mktemp).
2. run man, note erroneous results.
  
Actual results:


Expected results:


Additional info:

I am filing this as a bug because at other points in the same code, utilities
such as "iconv" are called via their full path, thus if they resided elsewhere
in the path, this would still be broken.

Comment 1 Dan Mahoney 2008-05-23 20:10:20 UTC
Created attachment 306547 [details]
Simple patch to fix.

Comment 2 RHEL Program Management 2009-03-26 16:48:34 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 6 Jan Vcelak 2011-10-06 13:14:20 UTC
Resolved in groff-1.18.1.1-12

Comment 8 Jan Vcelak 2011-10-06 13:33:41 UTC
Updated, %{?dist} was missing, groff-1.18.1.1-13.el5

Comment 9 Jan Vcelak 2011-10-12 10:41:24 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
- open manual page in restricted shell environment
- the manual page is not displayed or an warning message about using old character sets appears
- updated nroff script to use full paths when invkoing external binaries
- the manual pages can be displayed in restricted shell environment

Comment 11 errata-xmlrpc 2011-11-28 14:44:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1484.html