Subject: bin/31575: su doesn't recognize flag -c.
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <m4nb@biff.mail-box.ne.jp>
List: netbsd-bugs
Date: 10/13/2005 10:03:00
>Number:         31575
>Category:       bin
>Synopsis:       su doesn't recognize flag -c.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 13 10:03:00 +0000 2005
>Originator:     YOMURA Masanori
>Release:        NetBSD 3.99.9
>Organization:
>Environment:
current
netbsd-3
>Description:
su (PAM version) does not recognize flag -c.

# su -c class
su: unknown option -- c
Usage: su [-dflm] [login [shell arguments]]

netbsd-3, too.

>How-To-Repeat:

>Fix:
usr.bin/su/su_pam.c:
-#ifdef LOGIN_CAP
 #define ARGSTR  ARGSTRX "c:"
-#else
-#define ARGSTR ARGSTRX
-#endif