]> Cypherpunks repositories - gostls13.git/commit
os, syscall: revert Yosemite readdir workaround
authorBrad Fitzpatrick <bradfitz@golang.org>
Sun, 8 Feb 2015 20:19:20 +0000 (12:19 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 8 Feb 2015 21:04:15 +0000 (21:04 +0000)
commita35181ba7fcb9e62e3f867292501a49e5d1a8b0c
tree76f7a15ecbc3fc87bf257125af3f177002836385
parentc71b3e0e880cba36f1fb3ac30f5856a8f1037a61
os, syscall: revert Yosemite readdir workaround

Reverts https://golang.org/cl/119530044 (OS X 10.10 Yosemite beta
14A299l workaround), since it was fixed in the final Yosemite release.

I verified that the C program http://swtch.com/~rsc/readdirbug.c
passes on Yosemite.

Adds a new test to the os package too, to verify that reading a
regular file as a directory fails.

Fixes #9789 (ReadDir: no error if dirname is a file)

Change-Id: I75286cef88fbb2ebccf045b479e33c810749dcbc
Reviewed-on: https://go-review.googlesource.com/4164
Reviewed-by: Dave Cheney <dave@cheney.net>
src/os/os_test.go
src/syscall/syscall_bsd.go