From: Rob Pike Date: Tue, 5 Apr 2011 06:57:08 +0000 (-0700) Subject: os: fix windows build X-Git-Tag: weekly.2011-04-13~104 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=80c5ef9f3159803990467bd93cb349a50ca0e12f;p=gostls13.git os: fix windows build R=brainman CC=golang-dev https://golang.org/cl/4308047 --- 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 }