]> Cypherpunks repositories - gostls13.git/commit
os: fix missing break bug in earlier CL 110295's use of Uname
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 30 Apr 2018 22:55:05 +0000 (22:55 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 1 May 2018 15:55:49 +0000 (15:55 +0000)
commit6a8cff57309ba3168844640b2da2ea3103d594fd
treebcac7dca3c1dac904c1c9a4e49892d85dd7c6c74
parentd46980995be7a88713b27f829fb9f2cd9b307fa7
os: fix missing break bug in earlier CL 110295's use of Uname

The Uname name was never being used because it always generated a
too-long string.

The new test looking for zero bytes wouldn't have caught it (I thought
it would've), but is still nice to have.

Updates #24701

Change-Id: I2648074452609e4ad1b9736973e1b3a95eac658d
Reviewed-on: https://go-review.googlesource.com/110436
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/os_test.go
src/os/sys_linux.go