Date: Mon, 14 Mar 2022 17:28:41 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262038] fts(3): Check for readdir(3) errors Message-ID: <bug-262038-227-lsQBkiVKwP@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-262038-227@https.bugs.freebsd.org/bugzilla/> References: <bug-262038-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262038 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 conditio= n.=20 So you're right, setting errno =3D 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262038-227-lsQBkiVKwP>