]> Cypherpunks repositories - gostls13.git/commit
fix infinite loop in Readdirnames: bufp > nbuf can happen
authorRuss Cox <rsc@golang.org>
Wed, 15 Apr 2009 01:52:39 +0000 (18:52 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 15 Apr 2009 01:52:39 +0000 (18:52 -0700)
commitff73221d6f0f1abd632153c420ce954d2f6fc23a
tree1847c8ed95b9f392f16a46212d601fbbfd24e6e4
parentca9765d83a159b25514b8d0810c3eadb5b753ccd
fix infinite loop in Readdirnames: bufp > nbuf can happen
after EOF has been hit, because nbuf is now 0 or -1.

discard old comment.

R=r
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=27463
CL=27465
src/lib/os/dir_amd64_darwin.go
src/lib/os/dir_amd64_linux.go
src/lib/os/file.go