From e9d5fca9f30dc92dd659ce88030f9a5f4676b142 Mon Sep 17 00:00:00 2001 From: Nicolas Owens Date: Thu, 2 Oct 2014 10:25:56 +0200 Subject: [PATCH] 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 --- src/syscall/env_plan9.go | 1 + 1 file changed, 1 insertion(+) 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 } -- 2.50.0