Re: git: 4bd01d6ae016 - main - fts: refactor to use fd-relative operations internally
- In reply to: Alan Somers : "Re: git: 4bd01d6ae016 - main - fts: refactor to use fd-relative operations internally"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Aug 2026 19:50:47 UTC
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