Bug 15174

Summary: sysctl(8) gives bogus diagnostic
Product: Base System Reporter: toasty <toasty>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   

Description toasty 1999-11-30 00:50:01 UTC
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
Comment 1 jedgar 1999-11-30 03:18:36 UTC
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.
Comment 2 toasty 1999-11-30 03:30:30 UTC
> 
> 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
Comment 3 toasty 1999-11-30 03:31:45 UTC
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
Comment 4 bill fumerola freebsd_committer freebsd_triage 1999-11-30 04:07:58 UTC
State Changed
From-To: open->closed

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. 

:->