]> Cypherpunks repositories - gostls13.git/commit
cmd/go: respect group sticky bit on install.
authorChris Manghane <cmang@golang.org>
Fri, 10 Feb 2017 22:36:59 +0000 (14:36 -0800)
committerChris Manghane <cmang@golang.org>
Mon, 13 Feb 2017 19:33:36 +0000 (19:33 +0000)
commite9bb9e597e2683839e17f27349cf80ef395a06ce
tree3c4d32bb42e92a8e138ac07af437ba1ffc7c785d
parent4e0f63940cccfabea084a7608e8ba9c55b8ed952
cmd/go: respect group sticky bit on install.

When installing a package to a different directory using `go build`,
`mv` cannot be used if the destination directory has the group sticky
bit set.  Instead, `cp` should be used to make sure the destination
file has the correct permissions.

Fixes golang/go#18878.

Change-Id: I5423f559e7f84df080ed47816e19a22c6d00ab6d
Reviewed-on: https://go-review.googlesource.com/36797
Run-TryBot: Chris Manghane <cmang@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/internal/work/build.go
src/cmd/go/internal/work/build_test.go