Subject: Re: CVS commit: src/lib/libc
To: Frank van der Linden <fvdl@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: tech-userlevel
Date: 05/18/2006 22:10:18
On Thu, May 18, 2006 at 11:39:53AM +0200, Frank van der Linden wrote:
> 
> I've been agonizing over a fix for this in OpenSolaris, which has the same
> issue (worse: it has du(1) and fts/ftw implementations which depend
> on these semantics), and have come to the conclusion that there is
> no good fix. The least sucky one will have to do, but I'm not sure
> which one this is.

Presumably since fts/ftw are part of libc, they can know about the
internals of seekdir/telldir.

Alternatively they have to save the name and read the directory again.
(Or, at least, read a load of entries before closing the directory.)

	David

-- 
David Laight: david@l8s.co.uk