Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Feb 2022 18:00:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262038] fts: Check for readdir errors
Message-ID:  <bug-262038-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262038

            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=3D231923&action=
=3Dedit
Check for readdir errors

Hello,

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

https://github.com/martymac/fpart/pull/37/commits/dec9d40d9b4b9551791d61a15=
442aab8537a26f4

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 :

https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=3D6835fc458f30

The attached patch applies to latest -CURRENT.

Best regards,

Ganael.

--=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>