From nobody@FreeBSD.org  Wed Dec  4 05:06:36 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id A3F66BD3
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  4 Dec 2013 05:06:36 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 9164E10D8
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  4 Dec 2013 05:06:36 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rB456aYB048720
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 4 Dec 2013 05:06:36 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rB456aDJ048705;
	Wed, 4 Dec 2013 05:06:36 GMT
	(envelope-from nobody)
Message-Id: <201312040506.rB456aDJ048705@oldred.freebsd.org>
Date: Wed, 4 Dec 2013 05:06:36 GMT
From: Ryan Gerstenkorn <ryan_gerstenkorn@fastmail.fm>
To: freebsd-gnats-submit@FreeBSD.org
Subject: su(1) incorrect description for -c flag
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         184487
>Category:       docs
>Synopsis:       su(1) incorrect description for -c flag
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 04 05:10:00 UTC 2013
>Closed-Date:    Wed Dec 04 05:31:55 UTC 2013
>Last-Modified:  Wed Dec 04 05:31:55 UTC 2013
>Originator:     Ryan Gerstenkorn
>Release:        9-STABLE
>Organization:
>Environment:
FreeBSD FreeBSD92 9.2-STABLE FreeBSD 9.2-STABLE #2: Tue Dec  3 15:48:43 PST 2013     root@FreeBSD92:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The man page for su(1) says the following:
     "-c class
             Use the settings of the specified login class.  The login class
             must be defined in login.conf(5).  Only allowed for the super-
             user."

However su actually treats the argument to -c as a command and runs it as the target user.

The actual behavior is describe correctly in the EXAMPLES section.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Ryan Gerstenkorn <ryan_gerstenkorn@fastmail.fm>
To: bug-followup@FreeBSD.org,
 Ryan Gerstenkorn <ryan_gerstenkorn@fastmail.fm>
Cc:  
Subject: Re: docs/184487: su(1) incorrect description for -c flag
Date: Tue, 3 Dec 2013 21:26:18 -0800

 --Apple-Mail=_9A8D67BB-B202-404C-9BE4-FDBAB2921CDB
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 Ok nevermind, I was confused, this can be closed.
 
 --Apple-Mail=_9A8D67BB-B202-404C-9BE4-FDBAB2921CDB
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename=signature.asc
 Content-Type: application/pgp-signature;
 	name=signature.asc
 Content-Description: Message signed with OpenPGP using GPGMail
 
 -----BEGIN PGP SIGNATURE-----
 Comment: GPGTools - http://gpgtools.org
 
 iQEcBAEBCgAGBQJSnrz6AAoJEJUCCfchdXm974wIAKBr/5DqgloXIij5Vzrg5f9Y
 G70QX5fLD+qsXC0CKgbN/S1mGLosZzRJeHJXDeg7M2hcR7HJTvMtc5ochheEIqWk
 qR3TCIyGPbrisa/LD53T31wnUcMN1DPDgF3IPaxcJnsuI6oiSNIQg4LATL/YUbxt
 70nTNmX0qMfA9QrxTB0tkHOAUfuIuP6WBko4i9f7WOY0J6xURfVncGVvGEpTUjHm
 rltsR/tqpPE5D9GcE4P4a4u1/9rao8IDncFonzv3xV7NfQB900oBk4lx2xys/eVp
 bd0bkpN0ne8TFeYNFIQV8mdNa6eFBEOb7S5Ebc/p459v8yWlID9LtOzpmXKP7dw=
 =8GGJ
 -----END PGP SIGNATURE-----
 
 --Apple-Mail=_9A8D67BB-B202-404C-9BE4-FDBAB2921CDB--
State-Changed-From-To: open->closed 
State-Changed-By: gjb 
State-Changed-When: Wed Dec 4 05:31:23 UTC 2013 
State-Changed-Why:  
Closed at submitters request. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=184487 
>Unformatted:
