]> Cypherpunks repositories - gostls13.git/commitdiff
os: fix windows build
authorRob Pike <r@golang.org>
Tue, 5 Apr 2011 06:57:08 +0000 (23:57 -0700)
committerRob Pike <r@golang.org>
Tue, 5 Apr 2011 06:57:08 +0000 (23:57 -0700)
R=brainman
CC=golang-dev
https://golang.org/cl/4308047

src/pkg/os/file_windows.go

index 16dd4b6e045cf0f5c95b226862e2b1235cdfa15c..862baf6b913f301f79a3f8b9426bc5e038b5bb28 100644 (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
        }