os: work around inlining bug (issue 2678)

TBR=lvd
CC=golang-dev
https://golang.org/cl/5534070
This commit is contained in:
Russ Cox 2012-01-10 20:26:11 -08:00
parent 091ef25a5e
commit 8fe7701301
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ type dirInfo struct {
const DevNull = "NUL"
func (file *file) isdir() bool { return file != nil && file.dirinfo != nil }
func (f *file) isdir() bool { return f != nil && f.dirinfo != nil }
func openFile(name string, flag int, perm uint32) (file *File, err error) {
r, e := syscall.Open(name, flag|syscall.O_CLOEXEC, perm)