[PATCH] io: Use gnulib fts implementation (BZ 22944, BZ 20331)

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Mon Feb 23 14:43:05 GMT 2026



On 23/02/26 11:33, Andreas Schwab wrote:
> On Feb 23 2026, Adhemerval Zanella wrote:
> 
>> +      if (parent != NULL && 0 <= parent->fts_level)
>                                parent->fts_level >= 0
> 
>> +      if (0 <= fd)
>              fd >= 0
> 
>> +      if (0 <= prev_fd_in_slot)
>              prev_fd_in_slot >= 0
> 
>> +      if (0 <= old)
>              old >= 0
> 
>> +            if (0 <= sp->fts_cwd_fd)
>                    sp->fts_cwd_fd >= 0
> 
>> +                        if (ISSET(FTS_CWDFD) && 0 <= dir_fd)
>                                                    dir_fd >= 0
> 
>> +      if (0 <= fd)
>              fd >= 0
> 
>> +                && 0 <= FSTATAT (sp->fts_cwd_fd, p->fts_accpath, sbp,
>> +                                 AT_SYMLINK_NOFOLLOW))
>                    && FSTATAT (sp->fts_cwd_fd, p->fts_accpath, sbp,
>                                AT_SYMLINK_NOFOLLOW) >= 0)
> 
>> +        fts_assert (0 <= fd || dir != NULL);
>                        fd >= 0
> 
>> +            if (ISSET (FTS_CWDFD) && 0 <= fd)
>                                         fd >= 0
> 
>> +                if (0 <= parent_fd)
>                        parent_fd >= 0
> 
>> +      && 0 <= tuning->shrink_threshold
>             tuning->shrink_threshold >= 0
> 

I imported this as-in from gnulib to make the review easier. I am not sure
if we should fix it on gnulib or on glibc first.


More information about the Libc-alpha mailing list