[Bug 262038] fts(3): Check for readdir(3) errors

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 09 Mar 2022 21:10:12 UTC

--- Comment #6 from Mahmoud Abumandour <ma.mandourr@gmail.com> ---
Created attachment 232355
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=232355&action=edit
Check for readdir errors in fts

Fix the bug for fts.c, fts-compat.c, and fts-compat11.c. I followed Mark's
advice on setting a separate readdir errno integer in `fts_safe_readdir`, and
checking for errors using it. I also preferred to unify the interface of that
function regardless of using either `readdir()` or `freebsd11_readdir()`.

I would be happy to address any modification requests if there are any.

You are receiving this mail because:
You are the assignee for the bug.