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

Issue 12261043: code review 12261043: os: Made Readdir() work as documented (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by peted
Modified:
10 years, 8 months ago
Reviewers:
bradfitz
CC:
golang-dev, rsc, bradfitz
Visibility:
Public.

Description

os: Made Readdir() work as documented Readdir's result should never contain a nil. Fixes issue 5960.

Patch Set 1 #

Patch Set 2 : diff -r 6f0b4e0f38f8 https://code.google.com/p/go #

Patch Set 3 : diff -r 6f0b4e0f38f8 https://code.google.com/p/go #

Total comments: 3

Patch Set 4 : diff -r ef69e6cf3bd0 https://code.google.com/p/go #

Patch Set 5 : diff -r 97ea81ad7455 https://code.google.com/p/go #

Total comments: 2

Patch Set 6 : diff -r 97ea81ad7455 https://code.google.com/p/go #

Total comments: 6

Patch Set 7 : diff -r 97ea81ad7455 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -4 lines) Patch
M src/pkg/os/export_test.go View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/os/file_unix.go View 1 2 3 4 5 2 chunks +8 lines, -3 lines 0 comments Download
M src/pkg/os/os_unix_test.go View 1 2 3 4 5 6 2 chunks +39 lines, -1 line 0 comments Download

Messages

Total messages: 19
peted
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 8 months ago (2013-08-01 15:26:48 UTC) #1
rsc
https://codereview.appspot.com/12261043/diff/5001/src/pkg/os/file_unix.go File src/pkg/os/file_unix.go (right): https://codereview.appspot.com/12261043/diff/5001/src/pkg/os/file_unix.go#newcode165 src/pkg/os/file_unix.go:165: // When an error occurs, return the files read ...
10 years, 8 months ago (2013-08-01 17:13:59 UTC) #2
peted
https://codereview.appspot.com/12261043/diff/5001/src/pkg/os/file_unix.go File src/pkg/os/file_unix.go (right): https://codereview.appspot.com/12261043/diff/5001/src/pkg/os/file_unix.go#newcode165 src/pkg/os/file_unix.go:165: // When an error occurs, return the files read ...
10 years, 8 months ago (2013-08-01 17:24:42 UTC) #3
peted
On Windows and Plan 9, when an error occurs only the files read up to ...
10 years, 8 months ago (2013-08-01 19:09:03 UTC) #4
bradfitz
On Thu, Aug 1, 2013 at 8:26 AM, <pieter@binky.org.uk> wrote: > Reviewers: golang-dev1, > > ...
10 years, 8 months ago (2013-08-01 21:40:40 UTC) #5
peted
On 2013/08/01 21:40:40, bradfitz wrote: > On Thu, Aug 1, 2013 at 8:26 AM, <mailto:pieter@binky.org.uk> ...
10 years, 8 months ago (2013-08-01 22:29:27 UTC) #6
bradfitz
On Thu, Aug 1, 2013 at 3:29 PM, <pieter@binky.org.uk> wrote: > On 2013/08/01 21:40:40, bradfitz ...
10 years, 8 months ago (2013-08-01 22:38:43 UTC) #7
peted
On 2013/08/01 22:38:43, bradfitz wrote: > Why not? > > We do elsewhere. Not too ...
10 years, 8 months ago (2013-08-01 22:43:16 UTC) #8
rsc
https://codereview.appspot.com/12261043/diff/5001/src/pkg/os/file_unix.go File src/pkg/os/file_unix.go (right): https://codereview.appspot.com/12261043/diff/5001/src/pkg/os/file_unix.go#newcode165 src/pkg/os/file_unix.go:165: // When an error occurs, return the files read ...
10 years, 8 months ago (2013-08-02 17:08:29 UTC) #9
peted
On 2013/08/02 17:08:29, rsc wrote: > The documentation is correct as it is. The reading ...
10 years, 8 months ago (2013-08-02 19:00:31 UTC) #10
rsc
Thanks. The check made more sense when we used to call Stat on each directory ...
10 years, 8 months ago (2013-08-02 19:38:24 UTC) #11
peted
On 2013/08/02 19:38:24, rsc wrote: > Thanks. The check made more sense when we used ...
10 years, 8 months ago (2013-08-07 22:27:55 UTC) #12
bradfitz
https://codereview.appspot.com/12261043/diff/22001/src/pkg/os/file_unix.go File src/pkg/os/file_unix.go (right): https://codereview.appspot.com/12261043/diff/22001/src/pkg/os/file_unix.go#newcode152 src/pkg/os/file_unix.go:152: var mockLstat = Lstat I don't like this name. ...
10 years, 8 months ago (2013-08-07 22:33:35 UTC) #13
peted
PTAL https://codereview.appspot.com/12261043/diff/22001/src/pkg/os/file_unix.go File src/pkg/os/file_unix.go (right): https://codereview.appspot.com/12261043/diff/22001/src/pkg/os/file_unix.go#newcode152 src/pkg/os/file_unix.go:152: var mockLstat = Lstat On 2013/08/07 22:33:35, bradfitz ...
10 years, 8 months ago (2013-08-07 22:38:58 UTC) #14
bradfitz
https://codereview.appspot.com/12261043/diff/26001/src/pkg/os/os_unix_test.go File src/pkg/os/os_unix_test.go (right): https://codereview.appspot.com/12261043/diff/26001/src/pkg/os/os_unix_test.go#newcode31 src/pkg/os/os_unix_test.go:31: // Chown is not supported under Plan 9. please ...
10 years, 8 months ago (2013-08-07 23:39:20 UTC) #15
peted
I'll get on this when I get home from work. https://codereview.appspot.com/12261043/diff/26001/src/pkg/os/os_unix_test.go File src/pkg/os/os_unix_test.go (right): https://codereview.appspot.com/12261043/diff/26001/src/pkg/os/os_unix_test.go#newcode31 ...
10 years, 8 months ago (2013-08-08 08:06:24 UTC) #16
peted
Hello golang-dev@googlegroups.com, rsc@golang.org, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 8 months ago (2013-08-08 14:05:55 UTC) #17
bradfitz
LGTM On Thu, Aug 8, 2013 at 7:05 AM, <pieter@binky.org.uk> wrote: > Hello golang-dev@googlegroups.com, rsc@golang.org, ...
10 years, 8 months ago (2013-08-08 17:42:16 UTC) #18
bradfitz
10 years, 8 months ago (2013-08-08 17:44:05 UTC) #19
*** Submitted as https://code.google.com/p/go/source/detail?r=100a10512ea4 ***

os: make Readdir work as documented

Readdir's result should never contain a nil.

Fixes issue 5960.

R=golang-dev, rsc, bradfitz
CC=golang-dev
https://codereview.appspot.com/12261043

Committer: Brad Fitzpatrick <bradfitz@golang.org>
Sign in to reply to this message.

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