Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(665)

Issue 5831043: code review 5831043: os: return some invented data from Stat(DevNull) on windows (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by brainman
Modified:
13 years, 1 month ago
Reviewers:
bsiegert
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

os: return some invented data from Stat(DevNull) on windows Fixes issue 3321.

Patch Set 1 #

Patch Set 2 : diff -r 2a8d1cdbceb9 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 2a8d1cdbceb9 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 4 : diff -r 59b7d79b616f https://go.googlecode.com/hg/ #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -0 lines) Patch
M src/pkg/os/os_test.go View 1 1 chunk +19 lines, -0 lines 0 comments Download
M src/pkg/os/stat_windows.go View 1 2 3 3 chunks +22 lines, -0 lines 2 comments Download

Messages

Total messages: 5
brainman
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 1 month ago (2012-03-15 03:19:16 UTC) #1
bradfitz
LGTM http://codereview.appspot.com/5831043/diff/2002/src/pkg/os/stat_windows.go File src/pkg/os/stat_windows.go (right): http://codereview.appspot.com/5831043/diff/2002/src/pkg/os/stat_windows.go#newcode85 src/pkg/os/stat_windows.go:85: modTime: time.Now(), I'd remove this line. a zero ...
13 years, 1 month ago (2012-03-15 03:29:01 UTC) #2
brainman
*** Submitted as http://code.google.com/p/go/source/detail?r=f04024741479 *** os: return some invented data from Stat(DevNull) on windows Fixes ...
13 years, 1 month ago (2012-03-15 05:33:51 UTC) #3
bsiegert
http://codereview.appspot.com/5831043/diff/5003/src/pkg/os/stat_windows.go File src/pkg/os/stat_windows.go (right): http://codereview.appspot.com/5831043/diff/5003/src/pkg/os/stat_windows.go#newcode86 src/pkg/os/stat_windows.go:86: // hopefully this will work for SameFile test?
13 years, 1 month ago (2012-03-15 12:04:16 UTC) #4
brainman
13 years, 1 month ago (2012-03-16 06:10:56 UTC) #5
http://codereview.appspot.com/5831043/diff/5003/src/pkg/os/stat_windows.go
File src/pkg/os/stat_windows.go (right):

http://codereview.appspot.com/5831043/diff/5003/src/pkg/os/stat_windows.go#ne...
src/pkg/os/stat_windows.go:86: // hopefully this will work for SameFile
On 2012/03/15 12:04:16, bsiegert wrote:
> test?

Was thinking about that, but I can't come up with anything worth doing. I can
compare DevNull with any real file in current directory, but I know it will
work, because real files has non 0 VolumeSerialNumber, FileIndexHigh and
FileIndexLow. I can compare DevNull with itself, but that is even more trivial.

Alex
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b