]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/work: ensure correct group for TestRespectSetgidDir
authorMark Pulford <mark@kyne.com.au>
Sat, 8 Dec 2018 16:30:08 +0000 (03:30 +1100)
committerBryan C. Mills <bcmills@google.com>
Thu, 13 Dec 2018 15:08:48 +0000 (15:08 +0000)
commit571d93e977862f91bb153f0b98937ca655505fcd
treeac47d60a57328d293c8822c8e623cdb5d4b004f1
parent5dc144c607cb355e9f4a01bfa0b8f054899156a2
cmd/go/internal/work: ensure correct group for TestRespectSetgidDir

mkdir(2) inherits the parent directory group on *BSD (including Darwin),
and it may inherit on other platforms if the parent directory is SetGID.

This can cause TestRespectSetgidDir SetGID to fail when the process does
not have have permission for the inherited group on the new temporary
directory.

Fixes #29160

Change-Id: Iac05511e501dfe307a753f801223b1049cc0947d
Reviewed-on: https://go-review.googlesource.com/c/153357
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/internal/work/build_test.go