Subject: bin/25347: su(1) man page typos
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jthyttin@lce.hut.fi>
List: netbsd-bugs
Date: 04/27/2004 09:44:57
>Number:         25347
>Category:       bin
>Synopsis:       su(1) man page typos
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 27 09:45:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Juha Hyttinen
>Release:        1.6ZF
>Organization:
HUT/LCE
>Environment:
NetBSD sk5-50-1.tky.hut.fi 1.6ZF NetBSD 1.6ZF (SCORPION) #4: Sun Nov 16 01:16:50 EET 2003  jthyttin@scorpion.tky.hut.fi:6
>Description:
(cvsweb says, that su.1 hasn't been changed in half a year, and query-pr form didn't find anything relevant)

There's some typos in su(1) man page:

When option "-l" is discussed, there's duplication in "PATH is set to is set to the path specified in the".

When compile time options are discussed, there's option "SU_INDIRECT_GROOP", although:

sk5-50-1% grep INDIRECT /usr/src/usr.bin/su/su.c
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
#ifdef SU_INDIRECT_GROUP
#ifdef SU_INDIRECT_GROUP
#ifdef SU_INDIRECT_GROUP


>How-To-Repeat:
man 1 su
>Fix:
I tried to browse through su.1, otherwise it looks OK (in fact, I found the duplication typo this way, originally I only noticed typo in environmental variable). Here's a quick patch (oh, I even tested it works...):

--- /usr/src/usr.bin/su/su.1    2003-11-15 10:37:16.000000000 +0200
+++ /var/tmp/su.1       2004-04-27 12:39:35.000000000 +0300
@@ -132,7 +132,6 @@
 .Ev USER
 is set to the target login.
 .Ev PATH
-is set to
 is set to the path specified in the
 .Pa /etc/login.conf
 file (or to the default of
@@ -214,7 +213,7 @@
 by supplying their own password instead of the
 .Dq root
 one.
-.It SU_INDIRECT_GROOP
+.It SU_INDIRECT_GROUP
 If defined, the
 .Ar SU_GROUP
 and

>Release-Note:
>Audit-Trail:
>Unformatted: