[37494] in bugtraq
Re: Changes to the filesystem while find is running - comments?
daemon@ATHENA.MIT.EDU (Casper.Dik@Sun.COM)
Thu Nov 25 01:25:53 2004
Message-Id: <200411240751.iAO7pdMa017788@vaticaan.Holland.Sun.COM>
From: Casper.Dik@Sun.COM
To: James Youngman <bugtraq@excession.spiral-arm.org>
Cc: Martin Buchholz <Martin.Buchholz@Sun.COM>, bugtraq@securityfocus.com,
bug-findutils@gnu.org, parimiv@deshaw.com, srevilak@speakeasy.net,
levon@movementarian.org
In-Reply-To: <20041122235130.GA24410@excession.spiral-arm.org>
Date: Wed, 24 Nov 2004 08:51:38 +0100
>I can see that that would be useful but it would fail to comply with
>the POSIX standard, which specifies:
>
> The find utility shall be able to descend to arbitrary
> depths in a file hierarchy and shall not fail due to path
> length limitations (unless a path operand specified by the
> application exceeds {PATH_MAX} requirements)
But PATH_MAX is limited and the number of file descriptors is perhaps
not.
(On Solaris, PATH_MAX is 1024 so you require at most 512 file
descriptors to keep the stack of directories: 512 is less than the
default hard limit of 65536 file descriptors per process [S9, S8
and before used 1024, still >> 512)
Casper