From owner-freebsd-bugs Wed Dec 2 12:19:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA29316 for freebsd-bugs-outgoing; Wed, 2 Dec 1998 12:19:23 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA29302 for ; Wed, 2 Dec 1998 12:19:21 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from Unknown UID 563@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id MAA29442; Wed, 2 Dec 1998 12:20:00 -0800 (PST) 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 ; 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) Reply-To: jin@pesto.lbl.gov To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8941: sysctl in different place causes whereis failure Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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