[Bug 262038] fts: Check for readdir errors
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262038] fts(3): Check for readdir(3) errors"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Feb 2022 18:00:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262038
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
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/dec9d40d9b4b9551791d61a15442aab8537a26f4
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=6835fc458f30
The attached patch applies to latest -CURRENT.
Best regards,
Ganael.
--
You are receiving this mail because:
You are the assignee for the bug.