os/user: on Windows, user.LookupId fails with special built-in SIDs #49509
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
Milestone
AFICT the problem is here:
https://cs.opensource.google/go/go/+/refs/tags/go1.17.3:src/os/user/lookup_windows.go;l=237
syscall.SidTypeWellKnownGroup
is returned for some SIDs that are built-in to the OS.What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Build this program for Windows and run it on Windows.
What did you expect to see?
Successful output from the test program for
NT AUTHORITY\SYSTEM
What did you see instead?
Error message:
The text was updated successfully, but these errors were encountered: