From 80c5ef9f3159803990467bd93cb349a50ca0e12f Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 4 Apr 2011 23:57:08 -0700 Subject: [PATCH] os: fix windows build R=brainman CC=golang-dev https://golang.org/cl/4308047 --- src/pkg/os/file_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/os/file_windows.go b/src/pkg/os/file_windows.go index 16dd4b6e04..862baf6b91 100644 --- a/src/pkg/os/file_windows.go +++ b/src/pkg/os/file_windows.go @@ -168,7 +168,7 @@ func (file *File) Readdir(count int) (fi []FileInfo, err Error) { // Truncate changes the size of the named file. // If the file is a symbolic link, it changes the size of the link's target. func Truncate(name string, size int64) Error { - f, e := Open(name, O_WRONLY|O_CREATE, 0666) + f, e := OpenFile(name, O_WRONLY|O_CREATE, 0666) if e != nil { return e } -- 2.48.1