Commit 5ad0a524 authored by Constantin Konstantinidis's avatar Constantin Konstantinidis Committed by Alex Brainman

cmd/go: uses SID of group Guests to test ACL

The test TestACL failed when ran on a Windows set
up in another language as the "Guest" account
name is translated. The SID of the group of Guests
always exist and is used instead.

Fixes #26658

Change-Id: Ia885d08a9e50563787e389c2d2dc2547881a2943
Reviewed-on: https://go-review.googlesource.com/126598Reviewed-by: 's avatarAlex Brainman <alex.brainman@gmail.com>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 0090c13c
...@@ -97,7 +97,7 @@ func TestACL(t *testing.T) { ...@@ -97,7 +97,7 @@ func TestACL(t *testing.T) {
// will make all files created in TestACL/tmp have different // will make all files created in TestACL/tmp have different
// security attributes to the files created in TestACL. // security attributes to the files created in TestACL.
runIcacls(t, newtmpdir, runIcacls(t, newtmpdir,
"/grant", "guest:(oi)(ci)f", // add Guest user to have full access "/grant", "*S-1-5-32-546:(oi)(ci)f", // add Guests group to have full access
) )
src := filepath.Join(tmpdir, "main.go") src := filepath.Join(tmpdir, "main.go")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment