From toasty@shell3.dragondata.com Mon Nov 29 16:46:06 1999
Return-Path: <toasty@shell3.dragondata.com>
Received: from shell3.dragondata.com (shell3.dragondata.com [204.137.237.5])
	by hub.freebsd.org (Postfix) with ESMTP id A82C51541C
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 29 Nov 1999 16:45:54 -0800 (PST)
	(envelope-from toasty@shell3.dragondata.com)
Received: (from root@localhost)
	by shell3.dragondata.com (8.9.3/8.8.8) id SAA42740;
	Mon, 29 Nov 1999 18:45:52 -0600 (CST)
	(envelope-from toasty)
Message-Id: <199911300045.SAA42740@shell3.dragondata.com>
Date: Mon, 29 Nov 1999 18:45:52 -0600 (CST)
From: toasty@dragondata.com
Sender: toasty@shell3.dragondata.com
Reply-To: toasty@dragondata.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: sysctl(8) gives bogus diagnostic
X-Send-Pr-Version: 3.2

>Number:         15174
>Category:       bin
>Synopsis:       sysctl(8) gives bogus diagnostic
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 29 16:50:01 PST 1999
>Closed-Date:    Mon Nov 29 20:07:58 PST 1999
>Last-Modified:  Mon Nov 29 20:09:04 PST 1999
>Originator:     Kevin Day
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
DragonData Internet Services
>Environment:

Any FreeBSD system with sysctl(8)

>Description:

sysctl -da gives a rather confusing message:

su-2.03# sysctl -d -a
sysctl: sysctl name -1 1024 2: No such file or directory


I assumed this would give me the descriptions of all sysctls, but apparently
not. I'll come up with a patch myself if someone tells me if it's supposed
to allow this, or if it should smack you for doing something that it won't
do.

Is sysctl broken in that it won't do this, or is it not supposed to and just
not printing a sensible error?

>How-To-Repeat:

sysctl -d -a

>Fix:
	


>Release-Note:
>Audit-Trail:

From: "Chris D. Faulhaber" <jedgar@fxp.org>
To: toasty@dragondata.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/15174: sysctl(8) gives bogus diagnostic
Date: Mon, 29 Nov 1999 22:18:36 -0500 (EST)

 Wasn't this fixed a few weeks ago:
 
 des         1999/11/22 00:43:00 PST
   Modified files:
     sbin/sysctl          sysctl.8 sysctl.c
   Log:
   To clarify the previous log message: belatedly back out rev. 1.20 of
   sysctl.c and rev. 1.18 of sysctl.8, which added an option to show sysctl
   descriptions instead of their values. The kernel side of this was ripped
   out by a certain axe-bearing Dane a long time ago.
   PR:           15012
   Revision  Changes    Path
   1.22      +1 -1      src/sbin/sysctl/sysctl.8
   1.25      +1 -1      src/sbin/sysctl/sysctl.c
 
 
 -----
 Chris D. Faulhaber <jedgar@fxp.org>  |  All the true gurus I've met never
 System/Network Administrator,        |  claimed they were one, and always
 Reality Check Information, Inc.      |  pointed to someone better.
 
 
 

From: Kevin Day <toasty@dragondata.com>
To: jedgar@fxp.org (Chris D. Faulhaber)
Cc: toasty@dragondata.com, FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/15174: sysctl(8) gives bogus diagnostic
Date: Mon, 29 Nov 1999 21:30:30 -0600 (CST)

 > 
 > Wasn't this fixed a few weeks ago:
 > 
 > des         1999/11/22 00:43:00 PST
 >   Modified files:
 >     sbin/sysctl          sysctl.8 sysctl.c
 >   Log:
 >   To clarify the previous log message: belatedly back out rev. 1.20 of
 >   sysctl.c and rev. 1.18 of sysctl.8, which added an option to show sysctl
 >   descriptions instead of their values. The kernel side of this was ripped
 >   out by a certain axe-bearing Dane a long time ago.
 >   PR:           15012
 >   Revision  Changes    Path
 >   1.22      +1 -1      src/sbin/sysctl/sysctl.8
 >   1.25      +1 -1      src/sbin/sysctl/sysctl.c
 > 
 > 
 
 Ooops... I tried doing a gnats search on this before I submitted it, and saw
 nothing at all related. I'm really starting to believe I either
 misunderstand how to formulate gnats searches, or it likes to leave things
 out. :)
 
 Kevin
 

From: Kevin Day <toasty@dragondata.com>
To: toasty@dragondata.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/15174: sysctl(8) gives bogus diagnostic
Date: Mon, 29 Nov 1999 21:31:45 -0600 (CST)

 Please close this, with my apologies. This has been present since sysctl was
 added, and two people seem to have discovered it within a few days of each
 other. :)
 
 Fixed in bin/15012.
 
 
 Kevin
 
State-Changed-From-To: open->closed 
State-Changed-By: billf 
State-Changed-When: Mon Nov 29 20:07:58 PST 1999 
State-Changed-Why:  
Submitter notes that this was fixed in bin/15012. 

Because the submitter gave this committer a shirt 
at FreeBSDcon, which the committer is currently 
wearing, the committer will ignore this oversight. 

:-> 

>Unformatted:
