From: Nicolas Owens Date: Thu, 2 Oct 2014 08:25:56 +0000 (+0200) Subject: syscall: fix Setenv for plan 9 X-Git-Tag: go1.4beta1~213 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e9d5fca9f30dc92dd659ce88030f9a5f4676b142;p=gostls13.git syscall: fix Setenv for plan 9 envi needs to be updated during Setenv so the key can be correctly deleted later with Unsetenv. Update #8849. LGTM=0intro R=bradfitz, 0intro CC=golang-codereviews https://golang.org/cl/149300046 --- diff --git a/src/syscall/env_plan9.go b/src/syscall/env_plan9.go index 3044b410a9..9345079052 100644 --- a/src/syscall/env_plan9.go +++ b/src/syscall/env_plan9.go @@ -128,6 +128,7 @@ func Setenv(key, value string) error { } env[key] = value envs = append(envs, key+"="+value) + envi[key] = len(envs) - 1 return nil }