From owner-freebsd-bugs Sun Dec 1 23:22:21 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A364137B40C for ; Sun, 1 Dec 2002 23:22:20 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DE8A43ED4 for ; Sun, 1 Dec 2002 23:22:19 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id SAA01158; Mon, 2 Dec 2002 18:22:06 +1100 Date: Mon, 2 Dec 2002 18:36:02 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: David Schultz Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/45723: ls(1)'s wrong behaviour with not searchable directories In-Reply-To: <200212020600.gB2603ve035685@freefall.freebsd.org> Message-ID: <20021202182939.U3146-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 1 Dec 2002, David Schultz wrote: > > >How-To-Repeat: > > $ mkdir FOOBAR > > $ cd FOOBAR > > $ touch a b c d e > > $ cd .. > > $ chmod -x FOOBAR > > $ ls FOOBAR > > > > This one seems to be fixed in -CURRENT. It is broken for me, but that is because I have ls aliased to ls -F. > The problem appears to be in the fts_children() implementation. > If a chdir fails, the routine does not retry with FTS_NOCHDIR as > it should... I think fts it must honor FTS_NOCHDIR. ls could retry. But chdir is essential for handling deep directories. Most utilities that use FTS_NOCHDIR are simply broken since they should or shall support deep directories but don't. cp is the most important one. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message