Bug 217

Summary: mdoc2man.pl puts wrong name into ssh.1 man page
Product: Portable OpenSSH Reporter: Philip Spencer <pspencer>
Component: DocumentationAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: minor    
Priority: P2    
Version: -current   
Hardware: All   
OS: All   
Attachments:
Description Flags
Prevent mdoc2man.pl from using wrong name in man pages
none
CORRECTION to previous patch
none
AARRGGHH!! How can I make so many mistakes in a simple patch? This third one should be correct! none

Description Philip Spencer 2002-04-16 04:35:09 AEST
On systems where mdoc2man.pl is used, it puts the wrong name ("sftp" instead of
"ssh") into the ssh.1 man page. For example, under GatewayPorts: "By default,
sftp binds local port forwardings .... GatewayPorts can be used to specify that
sftp should bind local port forwardings ..."

The problem is that ssh.1 includes the following lines:

   when specifying configuration options using the
  .Nm ssh ,
  .Nm scp
  and
  .Nm sftp
  .Fl o
  option.

In mdoc2man.pl the line ".Nm sftp" sets $name to be "sftp" so subsequent
unqualified uses of ".Nm" produce "sftp" instead of "ssh".

The attached patch fixes the problem by not allowing $name to be redefined once
set.
Comment 1 Philip Spencer 2002-04-16 04:37:43 AEST
Created attachment 74 [details]
Prevent mdoc2man.pl from using wrong name in man pages
Comment 2 Philip Spencer 2002-04-16 08:03:07 AEST
Created attachment 75 [details]
CORRECTION to previous patch
Comment 3 Philip Spencer 2002-04-16 08:16:17 AEST
Created attachment 76 [details]
AARRGGHH!! How can I make so many mistakes in a simple patch? This third one should be correct!
Comment 4 Damien Miller 2002-04-17 12:33:15 AEST
Thanks - applied
Comment 5 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED