[Bug 262038] fts: Check for readdir errors

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 18 Feb 2022 18:00:04 UTC

            Bug ID: 262038
           Summary: fts: Check for readdir errors
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: martymac@FreeBSD.org

Created attachment 231923
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=231923&action=edit
Check for readdir errors


Here is a patch originally reported by Amir Goldstein to one of my projects
(fpart), which embeds our version of fts(3). See :


The patch fixes the fact that the fts_build() function does not check for
readdir(3) errors and erroneously assumes it always succeeds.

The same bug has already been fixed in gnulib, see :


The attached patch applies to latest -CURRENT.

Best regards,


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