From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 20:37:38 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 0429710656A6 for ; Mon, 29 Nov 2010 20:37:38 +0000 (UTC) (envelope-from darcsis@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id AD8118FC2A for ; Mon, 29 Nov 2010 20:37:34 +0000 (UTC) Received: by yxh35 with SMTP id 35so2449370yxh.13 for ; Mon, 29 Nov 2010 12:37:34 -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:subject :organization:user-agent:x-envelope-to:mail-followup-to:date :message-id:mime-version:content-type; bh=XdZZ+DobauhN/ATE70xlLtEI245o3FHksF7VtnBPWbw=; b=fYY8XBU68nn10CYXqL0ZufqeFUfQuqwqsbtxpNEk1IvF16q2GZTggI6ov8mQHsOlEx ctqYaxDdgSh8obre5X8tZiByGKRSCW3+IkxSkUU7PSm1OlPwetAmoE6aBqbMbSpXoM1D BJxEUbq6k9xL/0LiGfPgQRgLVqo6fZuTT2ViU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:organization:user-agent:x-envelope-to :mail-followup-to:date:message-id:mime-version:content-type; b=A0BnZgFZ5lb2SSJPRfj1mNdMWBA46a9rFw7M2m4NIwmibcAkkX0VpEzGo+o25D3i5/ wKH2uriW2FrESRCz2KJ+wfAWeR7dpVYXl5eXCUFDAVSJdQIoA4hbES2dKUb9uTnsTwBi nmSlzQ0x264ZoJGrryhSr+g2y0CV7B1AlAmPc= Received: by 10.150.185.5 with SMTP id i5mr10951859ybf.362.1291061293095; Mon, 29 Nov 2010 12:08:13 -0800 (PST) Received: from smtp.xbsd.name ([123.117.56.42]) by mx.google.com with ESMTPS id p30sm3508437ybk.20.2010.11.29.12.08.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Nov 2010 12:08:12 -0800 (PST) Received: from pluton.xbsd.name (pluton.xbsd.name [172.16.1.10]) by smtp.xbsd.name (OpenSMTPD) with ESMTP id ILaGiBh2 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128); Tue, 30 Nov 2010 04:08:06 +0800 (CST) From: darcsis@gmail.com (Denise H. G.) To: freebsd-hackers@freebsd.org Organization: Pluto The Planet User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) X-Envelope-To: freebsd-hackers@freebsd.org Mail-Followup-To: freebsd-hackers@freebsd.org Date: Tue, 30 Nov 2010 04:08:03 +0800 Message-ID: <86r5e3zye4.fsf@pluton.xbsd.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: 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 20:37:38 -0000 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. -- Self starters --- won't.