From owner-freebsd-hackers Wed Apr 7 11:55:23 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from gatekeeper.tsc.tdk.com (gatekeeper.tsc.tdk.com [207.113.159.21]) by hub.freebsd.org (Postfix) with ESMTP id C45AA14D0A for ; Wed, 7 Apr 1999 11:55:14 -0700 (PDT) (envelope-from gdonl@tsc.tdk.com) Received: from sunrise.gv.tsc.tdk.com (root@sunrise.gv.tsc.tdk.com [192.168.241.191]) by gatekeeper.tsc.tdk.com (8.8.8/8.8.8) with ESMTP id LAA28812; Wed, 7 Apr 1999 11:52:05 -0700 (PDT) (envelope-from gdonl@tsc.tdk.com) Received: from salsa.gv.tsc.tdk.com (salsa.gv.tsc.tdk.com [192.168.241.194]) by sunrise.gv.tsc.tdk.com (8.8.5/8.8.5) with ESMTP id LAA16262; Wed, 7 Apr 1999 11:52:04 -0700 (PDT) Received: (from gdonl@localhost) by salsa.gv.tsc.tdk.com (8.8.5/8.8.5) id LAA16057; Wed, 7 Apr 1999 11:52:03 -0700 (PDT) From: Don Lewis Message-Id: <199904071852.LAA16057@salsa.gv.tsc.tdk.com> Date: Wed, 7 Apr 1999 11:52:03 -0700 In-Reply-To: Sheldon Hearn "misc/10700: find(1) and the current directory" (Apr 7, 3:24pm) X-Mailer: Mail User's Shell (7.2.6 alpha(3) 7/19/95) To: Sheldon Hearn , hackers@FreeBSD.ORG Subject: Re: misc/10700: find(1) and the current directory Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Apr 7, 3:24pm, Sheldon Hearn wrote: } Subject: misc/10700: find(1) and the current directory } } Hi folks, } } I'm looking at PR 10700, which suggests a fix for a simple problem, } where a find is run as nobody from /usr/libexec/locate.updatedb (called } from /etc/periodic/weekly/310.locate) and blows if it can't fchdir to } root's homedir. } } The fix suggested is a work-around. The real issue seems to lie within } an assumption made in find(1), namely that the current directory will } always be accessible. I think the suggested fix in the PR is probably the way to go. I don't think there is much you can do about finds assumptions without building in a special purpose workaround for this case. What if you wanted to to do (assuming "." is readable): find /some/path . -whatever --- Truck To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message