Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Aug 2001 08:50:03 -0700 (PDT)
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/29730: su usage info shows incorrect info
Message-ID:  <200108151550.f7FFo3n39869@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/29730; it has been noted by GNATS.

From: Ruslan Ermilov <ru@FreeBSD.org>
To: Joseph Mallett <jmallett@xMach.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/29730: su usage info shows incorrect info
Date: Wed, 15 Aug 2001 18:39:54 +0300

 On Wed, Aug 15, 2001 at 07:10:17AM -0700, Joseph Mallett wrote:
 [...]
 > >Fix:
 > --- su.orig     Tue Jun 19 00:26:30 2001
 > +++ su.c        Wed Aug 15 14:04:29 2001
 > @@ -413,7 +413,7 @@
 >  static void
 >  usage()
 >  {
 > -       (void)fprintf(stderr, "usage: su [%s] [login [args]]\n", ARGSTR);
 > +       (void)fprintf(stderr, "usage: su [-flm] [-c class] [login [args]]\n");
 >         exit(1);
 > 
 I have committed your fix to HEAD, but for RELENG_4 the correct fix is
 not so obvious:
 
 Index: su.c
 ===================================================================
 RCS file: /home/ncvs/src/usr.bin/su/su.c,v
 retrieving revision 1.34.2.2
 diff -u -p -r1.34.2.2 su.c
 --- su.c	2001/06/19 00:26:30	1.34.2.2
 +++ su.c	2001/08/15 15:36:56
 @@ -413,7 +413,18 @@ main(argc, argv)
  static void
  usage()
  {
 -	(void)fprintf(stderr, "usage: su [%s] [login [args]]\n", ARGSTR);
 +	(void)fprintf(stderr, "usage: su [-] %s%s[login [args]]\n",
 +#ifdef KERBEROS
 +	    "[-Kflm] ",
 +#else
 +	    "[-flm] ",
 +#endif
 +#ifdef LOGIN_CAP
 +	    "[-c class] "
 +#else
 +	    ""
 +#endif
 +	    );
  	exit(1);
  }
  
 
 Cheers,
 -- 
 Ruslan Ermilov		Oracle Developer/DBA,
 ru@sunbay.com		Sunbay Software AG,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.512.251	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108151550.f7FFo3n39869>