Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Dec 1998 12:17:35 -0800 (PST)
From:      Jin Guojun (FTG staff) <jin@pesto.lbl.gov>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/8941: sysctl in different place causes whereis failure
Message-ID:  <199812022017.MAA01740@pesto.lbl.gov>

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

>Number:         8941
>Category:       bin
>Synopsis:       sysctl in different place causes whereis failure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec  2 12:20:00 PST 1998
>Last-Modified:
>Originator:     Jin Guojun (FTG staff)
>Organization:
>Release:        FreeBSD 2.2.8-RELEASE i386
>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.

>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?199812022017.MAA01740>