Re: git: 4bd01d6ae016 - main - fts: refactor to use fd-relative operations internally

"Herbert J. Skuhra" <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <5d14bf9d-d0f7-43c5-99e9-ac7585fa198c__47946.1246797413$1785873104$gmane$org@app.fastmail.com>
On Tue, 4 Aug 2026, at 21:33, Alan Somers wrote:
> Try this patch.  It works for me.  I don't have an ATF regression test
> to go with it, though:
>
> diff --git a/lib/libc/gen/fts.c b/lib/libc/gen/fts.c
> index 204340e4b87f..3dd9b6432a2c 100644
> --- a/lib/libc/gen/fts.c
> +++ b/lib/libc/gen/fts.c
> @@ -489,8 +489,7 @@ fts_read(FTS *sp)
>                  * FTS_STOP or the fts_info field of the node.
>                  */
>                 if (sp->fts_child != NULL) {
> -                       if (fts_safe_changedir(sp, p,
> -                           p->fts_dirfd, p->fts_name)) {
> +                       if (fts_safe_changedir(sp, p, -1, p->fts_name)) {
>                                 p->fts_errno = errno;
>                                 p->fts_flags |= FTS_DONTCHDIR;
>                                 for (p = sp->fts_child; p != NULL;
>

This change fixes the poudriere issue that I reported earlier today.

Thanks.

-- 
Herbert
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.