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

Issue 961046: code review 961046: net: do not require newline at end of resolv.conf (Closed)

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

Description

net: do not require newline at end of resolv.conf Fixes issue 686.

Patch Set 1 #

Patch Set 2 : code review 961046: net: do not require newline at end of resolv.conf #

Patch Set 3 : code review 961046: net: do not require newline at end of resolv.conf #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M src/pkg/net/parse.go View 1 chunk +5 lines, -0 lines 1 comment Download

Messages

Total messages: 5
rsc
Hello adg (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 10 months ago (2010-04-28 22:23:38 UTC) #1
adg
LGTM the fix is fine, but it strikes me that net/parse.go is pretty general and ...
14 years, 10 months ago (2010-04-29 01:06:55 UTC) #2
rsc
On Wed, Apr 28, 2010 at 18:06, Andrew Gerrand <adg@golang.org> wrote: > the fix is ...
14 years, 10 months ago (2010-04-29 02:35:10 UTC) #3
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=4e38b2d298dd *** net: do not require newline at end of resolv.conf Fixes ...
14 years, 10 months ago (2010-04-29 02:36:08 UTC) #4
cw
14 years, 10 months ago (2010-04-29 08:15:16 UTC) #5
NAK

http://codereview.appspot.com/961046/diff/8001/9001
File src/pkg/net/parse.go (right):

http://codereview.appspot.com/961046/diff/8001/9001#newcode39
src/pkg/net/parse.go:39: s = string(data)
is the end of the buffer is in the middle of the line this breaks things

LookupPort reading /etc/services for example is typically over 1K and many
things like tcp/80 aren't in the first 1K so all those tests now fail
Sign in to reply to this message.

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