From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 22:15:16 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 29DF9106564A for ; Mon, 29 Nov 2010 22:15:16 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id AFC608FC15 for ; Mon, 29 Nov 2010 22:15:15 +0000 (UTC) Received: by eyb7 with SMTP id 7so2466116eyb.13 for ; Mon, 29 Nov 2010 14:15:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=bFogWBXgcEywXhWZcuyIiRItzzao1wC10Qb2bFQFNBM=; b=qTlvp7RG6j/XWsIjdCA89A+75m6G9qXkeFyQcz8nmBfhbcpUKaUJbx7vQIZTOTCiuj lmGAEy0tAbM9UftWTp7m1eLAdVBXp+1Fq3SzcaHj0wComLfWnw0Jbmg37tJ/TxoWuGx4 bGyG7nL1zNP6gX1Ioy8PxF5FMfu0Iy5yM4WXM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=jmKOjArLGjayT6DL92YcMgvTr1JmoWzY+y2VnKJYXbA2OJVfxwceajLIXEeIT52dd7 ZKO/0+n57e59ZyhkDWnxmMNhu3+wOkAFPhdElJ6Orq1YXpJI2vge758OLTl4Fz2BLL5c DBXreGihH0yTzWLNWQ4HxeVWTcVW9AEI/sc8Q= MIME-Version: 1.0 Received: by 10.216.7.8 with SMTP id 8mr1087696weo.30.1291068914460; Mon, 29 Nov 2010 14:15:14 -0800 (PST) Sender: yanegomi@gmail.com Received: by 10.216.198.27 with HTTP; Mon, 29 Nov 2010 14:15:14 -0800 (PST) In-Reply-To: <4CF40F8F.30303@feral.com> References: <86r5e3zye4.fsf@pluton.xbsd.name> <4CF40F8F.30303@feral.com> Date: Mon, 29 Nov 2010 14:15:14 -0800 X-Google-Sender-Auth: iLn5UK7ZNUFeHzJlRVJRuqaclUI Message-ID: From: Garrett Cooper To: Matthew Jacob Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org 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: Mon, 29 Nov 2010 22:15:16 -0000 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 Thanks, -Garrett