From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28641 invoked from network); 24 Sep 2021 00:16:09 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 24 Sep 2021 00:16:09 -0000 Received: (qmail 30291 invoked by uid 550); 24 Sep 2021 00:16:07 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 30264 invoked from network); 24 Sep 2021 00:16:06 -0000 Date: Thu, 23 Sep 2021 20:15:54 -0400 From: Rich Felker To: musl@lists.openwall.com Message-ID: <20210924001554.GX13220@brightrain.aerifal.cx> References: <2C8S0G5PN0Q4R.21N6CCO9FEK55@8pit.net> <2ZOH0VJCXGU77.20FBB6F700B31@8pit.net> <8d47f1d8-dfc9-d747-c274-97585c1fc019@dereferenced.org> <3OO2PBDGFF260.2CC0KDWJRFXU5@8pit.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3OO2PBDGFF260.2CC0KDWJRFXU5@8pit.net> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] Re: nftw: FTW_CHDIR defined but not implemented On Sat, Sep 04, 2021 at 05:04:21PM +0200, Sören Tempel wrote: > Ariadne Conill wrote: > > Hi, > > Hello, > > > I can write a patch for it if we don't have one already. It would be nice > > to get this one fixed in the Alpine 3.15 release cycle. > > No, we don't have one yet. Feel free to write one! :) If it's simple enough I don't mind reviewing it, but I'd really like to rewrite this whole function to use an explicit stack. As it is now, it blows away the stack badly on deep trees unless you ensure it's only called from threads with rather large stacks. There's no good reason for such a limitation, especially on a system with a PATH_MAX. Having just written dir tree walking code for another project, I've got this on my mind, and might try doing it sometime soon. Rich