]> Cypherpunks repositories - gostls13.git/commitdiff
os: fix path/filepath test on Windows
authorRuss Cox <rsc@golang.org>
Wed, 30 Nov 2011 18:42:14 +0000 (13:42 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 30 Nov 2011 18:42:14 +0000 (13:42 -0500)
This is not the right fix, but it is what used to happen
before the FileInfo conversion, and it should get the
build working again (at least that part).

TBR=brainman
CC=golang-dev
https://golang.org/cl/5434090

src/pkg/os/stat_windows.go

index ddecd1118f6a0d70c2b986f8bb1ed762a142fd09..e599583b2e50cb58a36b50d50319c320756fbb7f 100644 (file)
@@ -100,7 +100,11 @@ func toFileInfo(name string, fa, sizehi, sizelo uint32, ctime, atime, mtime sysc
 }
 
 func sameFile(fs1, fs2 *FileStat) bool {
-       return false
+       // TODO(rsc): Do better than this, but this matches what
+       // used to happen when code compared .Dev and .Ino,
+       // which were both always zero.  Obviously not all files
+       // are the same.
+       return true
 }
 
 // For testing.