[Bug 262038] fts(3): Check for readdir(3) errors
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts: Check for readdir errors"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Mar 2022 17:28:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262038 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.