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

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 14 Mar 2022 17:28:41 UTC

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
           Assignee|bugs@FreeBSD.org            |markj@FreeBSD.org

--- Comment #14 from Mark Johnston <markj@FreeBSD.org> ---
(In reply to Mahmoud Abumandour from comment #12)
Oops, right, readdir() returns NULL both for errors and for an EOF condition. 
So you're right, setting errno = 0 is necessary.  Sorry for the noise.

(In reply to Mahmoud Abumandour from comment #13)
Not really, unfortunately, though it's certainly desired.  We do have a
.clang-format file in the root of the src repository that gets one most of the
way there, but it's far from perfect.

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