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)
Sat, Oct 18, 2:02 PM
Unknown Object (File)
Sat, Oct 18, 2:02 PM
Unknown Object (File)
Sat, Oct 18, 2:39 AM
Unknown Object (File)
Sat, Oct 11, 5:33 AM
Unknown Object (File)
Sep 17 2025, 2:20 AM
Unknown Object (File)
Sep 16 2025, 12:29 AM
Unknown Object (File)
Aug 22 2025, 9:25 AM
Unknown Object (File)
Aug 1 2025, 9:18 PM
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