[PATCH] Fix ftw and nftw

Ulrich Drepper drepper@redhat.com
Sat Dec 16 09:41:00 GMT 2000


Jakub Jelinek <jakub@redhat.com> writes:

> If the depth level at which {,n}ftw callback decides to return non-zero is
> bigger than the descriptors argument passed to {,n}ftw, we trigger an
> assertion in ftw_dir and depending on NDEBUG either don't behave correctly
> or abort.

Thanks, I've applied the patch after a little optimization.  Also the
tests are in although I'm not sure that they always will work.  We'll
see.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Libc-hacker mailing list