From jin@pesto.lbl.gov  Wed Dec  2 12:17:48 1998
Received: from pesto.lbl.gov (pesto.lbl.gov [131.243.2.55])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA29139
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 2 Dec 1998 12:17:47 -0800 (PST)
          (envelope-from jin@pesto.lbl.gov)
Received: (from jin@localhost)
	by pesto.lbl.gov (8.8.8/8.8.8) id MAA01740;
	Wed, 2 Dec 1998 12:17:35 -0800 (PST)
	(envelope-from jin)
Message-Id: <199812022017.MAA01740@pesto.lbl.gov>
Date: Wed, 2 Dec 1998 12:17:35 -0800 (PST)
From: Jin Guojun (FTG staff) <jin@pesto.lbl.gov>
Reply-To: jin@pesto.lbl.gov
To: FreeBSD-gnats-submit@freebsd.org
Subject: sysctl in different place causes whereis failure
X-Send-Pr-Version: 3.2

>Number:         8941
>Category:       bin
>Synopsis:       sysctl in different place causes whereis failure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec  2 12:20:00 PST 1998
>Closed-Date:    Thu Dec 17 09:11:58 PST 1998
>Last-Modified:  Thu Dec 17 09:12:13 PST 1998
>Originator:     Jin Guojun (FTG staff)
>Release:        FreeBSD 2.2.8-RELEASE i386
>Organization:
>Environment:

	FreeBSD 2.2.8-RELEASE

>Description:

	the "sysctl" command has bend moved from /usr/sbin to /sbin.
	/usr/bin/whereis line 99 invokes sysctl by
		"/usr/sbin/sysctl -n user.cs_path"
	that causes command not found error.

>How-To-Repeat:

	try do "whereis anything"

# whereis yp
Can't exec "/usr/sbin/sysctl -n user.cs_path": No such file or directory at /usr/bin/whereis line 99yp:


>Fix:
	
	change /usr/sbin/sysctl to /sbin/sysctl at line 99 in whereis program.

>Release-Note:
>Audit-Trail:

From: Philip Hallstrom <philip@eilio.com>
To: freebsd-gnats-submit@freebsd.org, jin@pesto.lbl.gov
Cc:  Subject: Re: bin/8941: sysctl in different place causes whereis failure
Date: Thu, 10 Dec 1998 09:22:13 -0800 (PST)

 Hi -
 	I ran into this same problem, and have some additional
 information.  It's true that sysctl resides in /sbin/sysctl, not
 /usr/sbin/sysctl.  On my system (2.2.8-RELEASE -- sorry don't have my
 system connected to the net yet :( ) /usr/sbin/sysctl is a symlink to
 something close to /R/stage/tree/bin/sysctl or something like that.
 	I changed the symlink so that /usr/sbin/sysctl -> /sbin/sysctl and
 everything works fine.
 
 Other than that, FreeBSD is freaking AWESOME!!! :)
 
 -philip
 
 
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Thu Dec 17 09:11:58 PST 1998 
State-Changed-Why:  
fixed, thanks! 
>Unformatted:
