mirror of https://github.com/golang/go.git
os: work around inlining bug (issue 2678)
TBR=lvd CC=golang-dev https://golang.org/cl/5534070
This commit is contained in:
parent
091ef25a5e
commit
8fe7701301
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue