From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 30 11:23:53 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D030D106564A for ; Tue, 30 Nov 2010 11:23:53 +0000 (UTC) (envelope-from darcsis@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 96D188FC0C for ; Tue, 30 Nov 2010 11:23:53 +0000 (UTC) Received: by pzk32 with SMTP id 32so900679pzk.13 for ; Tue, 30 Nov 2010 03:23:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :in-reply-to:organization:references:user-agent:x-envelope-to :mail-followup-to:date:message-id:mime-version:content-type; bh=Dq9dVaG9txAoYncKxNfpTn6GwCCI3XXT0uBqGF/IKn4=; b=TxMNuMgrWr95lbzAxJnjBFxfAFPa488MR9UnZosLcHaYlsOxpbkVEQ1zNVWjNGQVig uZnzjg3kz2KDAfvYzOssMzcHwxwH5o3rRyBpZ4U9o1bVUBDgNmb1B37xMGagpefIUtYF NKbsz17+zFVkY3jYR9GHpudpWKJ2W3N3abU+Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:organization:references:user-agent :x-envelope-to:mail-followup-to:date:message-id:mime-version :content-type; b=RZfnMtmI+TEzhgYvTDj+ibw1BT+ms0D8yv+/XsaVnf3N63EyzoeGsY2J5asw7SAvD3 igt3yBXuKvyNq0nqbo4brDLSyq+GsX+sJc2W2DYmGU13Tragz+tMqF+mIz7Qy4cXpWpl +qZETNJfx6SBgixukSsfzSHV/Xbt1EGf1KfLc= Received: by 10.142.132.6 with SMTP id f6mr6916238wfd.63.1291116232957; Tue, 30 Nov 2010 03:23:52 -0800 (PST) Received: from smtp.xbsd.name ([114.244.167.213]) by mx.google.com with ESMTPS id y42sm8817898wfd.10.2010.11.30.03.23.48 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 30 Nov 2010 03:23:50 -0800 (PST) Received: from pluton.xbsd.name (pluton.xbsd.name [172.16.1.10]) by smtp.xbsd.name (OpenSMTPD) with ESMTP id 4VK28N6m (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128); Tue, 30 Nov 2010 19:23:44 +0800 (CST) From: darcsis@gmail.com (Denise H. G.) To: Garrett Cooper In-Reply-To: (Garrett Cooper's message of "Mon, 29 Nov 2010 14:15:14 -0800") Organization: Pluto The Planet References: <86r5e3zye4.fsf@pluton.xbsd.name> <4CF40F8F.30303@feral.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) X-Envelope-To: gcooper@freebsd.org Mail-Followup-To: Garrett Cooper , Matthew Jacob , freebsd-hackers@freebsd.org Date: Tue, 30 Nov 2010 19:23:41 +0800 Message-ID: <8639qjxdfm.fsf@pluton.xbsd.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-hackers@freebsd.org, Matthew Jacob Subject: Re: find(1): Is this a bug or not? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2010 11:23:54 -0000 On 2010/11/30 at 06:15, Garrett Cooper wrote: > > On Mon, Nov 29, 2010 at 12:39 PM, Matthew Jacob wrote: >> can you report out the actual command line you're using and what release >> it's from? >> >> On 11/29/2010 12:08 PM, Denise H. G. wrote: >>> >>> Hi, >>> >>> I found that, while searching for empty directories, find(1) will not >>> continue if it encounters a dir it can't enter (e.g. no privilege). I >>> don't know if it's so designed... I've checked NetBSD and OpenBSD's >>> implementations (almost identical to that of FreeBSD's). And they behave >>> the same way as FreeBSD's find(1) does under the circumstance. >>> >>> I'm wondering if this is a bug or not. > > I thought I had seen something similar to this in the past, but I > can't reproduce it with simple cases: > > $ find . > . > ./cant-touch-this > find: ./cant-touch-this: Permission denied > ./hello-world > ./hello-world/are-you-sure > $ find . -name '*' > . > ./cant-touch-this > find: ./cant-touch-this: Permission denied > ./hello-world > ./hello-world/are-you-sure > $ find . -type f > find: ./cant-touch-this: Permission denied > ./hello-world/are-you-sure > $ sudo find . -type f > ./cant-touch-this/mchammer > ./hello-world/are-you-sure "find . -type f" will be ok. but "find . -type d -empty" won't work as expected, I think. > > Thanks, > -Garrett > ................ -- Self starters --- won't.