1
0
mirror of https://github.com/golang/go synced 2024-11-25 00:07:56 -07:00

os: fix windows build

R=brainman
CC=golang-dev
https://golang.org/cl/4308047
This commit is contained in:
Rob Pike 2011-04-04 23:57:08 -07:00
parent 8a90fd3c72
commit 80c5ef9f31

View File

@ -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
}