Page MenuHomeFreeBSD

Return EISDIR when read() and pread()'ing a directory.
AbandonedPublic

Authored by delphij on May 12 2020, 2:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 20, 8:38 PM
Unknown Object (File)
Thu, Nov 20, 8:35 PM
Unknown Object (File)
Thu, Nov 20, 8:28 PM
Unknown Object (File)
Nov 11 2025, 5:38 PM
Unknown Object (File)
Oct 25 2025, 11:44 PM
Unknown Object (File)
Oct 18 2025, 2:02 PM
Unknown Object (File)
Oct 18 2025, 2:02 PM
Unknown Object (File)
Oct 18 2025, 2:39 AM
Subscribers

Details

Reviewers
emaste
jilles
kib
mckusick
Group Reviewers
manpages
Summary

POSIX allows implementation to return EISDIR when reading of directory is not allowed.
readdir() should be used instead.

PR: 246412

Test Plan

cat /

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31037
Build 28743: arc lint + arc unit