]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: save and restore original permissions in makeGOROOTUnwritable
authorBryan C. Mills <bcmills@google.com>
Tue, 12 Nov 2019 15:18:06 +0000 (10:18 -0500)
committerBryan C. Mills <bcmills@google.com>
Tue, 12 Nov 2019 16:36:43 +0000 (16:36 +0000)
commitfc7ee0ba2c9f284ea2d4a37a0c133524e94d88cd
tree36f4ca2b2d58fbd72b60f44a0a39d807f98a2d5d
parent99957b6930c76b683dbca1ff4bcdd56e59b1e035
cmd/dist: save and restore original permissions in makeGOROOTUnwritable

Also log a message and skip the Chmods if running as root.

Updates #30316

Change-Id: Ifb68d06ce845275a72d64c808407e8609df270bc
Reviewed-on: https://go-review.googlesource.com/c/go/+/206757
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/dist/test.go