1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:14:46 -07:00
go/src/os
Brad Fitzpatrick a35181ba7f 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>
2015-02-08 21:04:15 +00:00
..
exec os/exec: tell lsof not to block 2014-11-05 20:25:20 -08:00
signal os/signal, runtime: implement notes on Plan 9 2015-02-06 19:46:34 +00:00
user
dir_plan9.go
dir_unix.go os: do not assume syscall i/o funcs return n=0 on error 2014-10-28 15:00:13 -04:00
dir_windows.go
doc.go
env_test.go
env_unix_test.go
env.go
error_plan9.go
error_test.go
error_unix.go
error_windows_test.go
error_windows.go
error.go
exec_plan9.go
exec_posix.go os: replace itod on posix with general itoa and fix possible infinite recursion 2015-01-02 16:21:18 +00:00
exec_unix.go
exec_windows.go
exec.go
export_test.go
file_plan9.go os: document that users of Fd should keep f alive 2014-11-06 09:36:51 -05:00
file_posix.go os: do not assume syscall i/o funcs return n=0 on error 2014-10-28 15:00:13 -04:00
file_unix.go os: handle the sticky bit separately for *BSD and Solaris 2014-12-17 16:07:28 +00:00
file_windows.go os: document that users of Fd should keep f alive 2014-11-06 09:36:51 -05:00
file.go os: handle the sticky bit separately for *BSD and Solaris 2014-12-17 16:07:28 +00:00
getwd_darwin.go
getwd.go
os_test.go os, syscall: revert Yosemite readdir workaround 2015-02-08 21:04:15 +00:00
os_unix_test.go os: fix TestMkdirAllAtSlash on Plan 9 2015-02-02 17:01:45 +00:00
os_windows_test.go
path_plan9.go
path_test.go os: fix TestMkdirAllAtSlash on Plan 9 2015-02-02 17:01:45 +00:00
path_unix.go
path_windows.go
path.go
pipe_bsd.go
pipe_linux.go
proc.go
stat_darwin.go
stat_dragonfly.go
stat_freebsd.go
stat_linux.go
stat_nacl.go
stat_netbsd.go
stat_openbsd.go
stat_plan9.go os: emulate plan 9 libc in stat 2015-01-26 06:34:07 +00:00
stat_solaris.go
stat_windows.go
sticky_bsd.go os: handle the sticky bit separately for *BSD and Solaris 2014-12-17 16:07:28 +00:00
sticky_notbsd.go os: handle the sticky bit separately for *BSD and Solaris 2014-12-17 16:07:28 +00:00
str.go os: replace itod on posix with general itoa and fix possible infinite recursion 2015-01-02 16:21:18 +00:00
sys_bsd.go
sys_darwin.go
sys_freebsd.go
sys_linux.go
sys_nacl.go
sys_plan9.go
sys_solaris.go
sys_unix.go
sys_windows.go
types_notwin.go
types_windows.go
types.go