Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Aug 2001 07:10:17 -0700 (PDT)
From:      Joseph Mallett <jmallett@xMach.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/29730: su usage info shows incorrect info
Message-ID:  <200108151410.f7FEAHO25210@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         29730
>Category:       misc
>Synopsis:       su usage info shows incorrect info
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 15 07:20:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Joseph Mallett
>Release:        4.3-STABLE
>Organization:
xMach
>Environment:
>Description:
Someone decided it would be easy to just insert the string used by getopt() in the usage fprintf, but this is bad, because as the c flag requires an argument, it has a colon after it, and the usage output might lead a reader to believe 'su -:' did something.
>How-To-Repeat:
Type su -c without any argument.
>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);
 }
>Release-Note:
>Audit-Trail:
>Unformatted:

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?200108151410.f7FEAHO25210>