]> Cypherpunks repositories - gostls13.git/commitdiff
os, syscall: update unreachable link about =C: envs
authorOleksandr Redko <oleksandr.red+github@gmail.com>
Thu, 29 Jun 2023 13:06:19 +0000 (16:06 +0300)
committerGopher Robot <gobot@golang.org>
Tue, 4 Jul 2023 15:31:54 +0000 (15:31 +0000)
Change-Id: I185dec133599f9c69fda7563697bbc33e433fb78
Reviewed-on: https://go-review.googlesource.com/c/go/+/507135
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/os/env_test.go
src/syscall/env_windows.go

index 1b9e26594cfe3482512b35ec4c657f6d735d8873..5809f4b866b73a38bdcea2c43ee3183f6c2cf5b7 100644 (file)
@@ -130,7 +130,7 @@ func TestClearenv(t *testing.T) {
        defer func(origEnv []string) {
                for _, pair := range origEnv {
                        // Environment variables on Windows can begin with =
-                       // https://blogs.msdn.com/b/oldnewthing/archive/2010/05/06/10008132.aspx
+                       // https://devblogs.microsoft.com/oldnewthing/20100506-00/?p=14133
                        i := strings.Index(pair[1:], "=") + 1
                        if err := Setenv(pair[:i], pair[i+1:]); err != nil {
                                t.Errorf("Setenv(%q, %q) failed during reset: %v", pair[:i], pair[i+1:], err)
index 20d74b51e0107274f97b57a026af6d5b9eeb5127..220a005e1aaabb603851f38c0a65c1d5e954295b 100644 (file)
@@ -62,7 +62,7 @@ func Clearenv() {
        for _, s := range Environ() {
                // Environment variables can begin with =
                // so start looking for the separator = at j=1.
-               // https://blogs.msdn.com/b/oldnewthing/archive/2010/05/06/10008132.aspx
+               // https://devblogs.microsoft.com/oldnewthing/20100506-00/?p=14133
                for j := 1; j < len(s); j++ {
                        if s[j] == '=' {
                                Unsetenv(s[0:j])