-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Open
Assignees
Labels
Milestone
@millerresearch
Description
CL 699375 fixed a similar issue for Windows, and added a test to TestReadDir which fails on plan9-arm, revealing that Plan 9 has the same problem.
--- FAIL: TestReadDir (0.05s)
read_test.go:119: ReadDir /tmp/TestReadDir1843189195/001/foo: (nil, ENOTDIR) expected, got ([], <nil>)
FAIL
FAIL os 80.191s
Plan 9 makes less distinction than other operating systems between directories and regular files, so the ReadDir implementation needs to make an explicit check that its argument is a directory and return ENOTDIR otherwise.