Remove extra space after "Groups:" in /proc/pid/status.

Linux does not include this space, and the Go 1.20 runtime tests
check for the string equality exactly.

PiperOrigin-RevId: 523159824
This commit is contained in:
Nicolas Lacasse
2023-04-10 11:06:49 -07:00
committed by gVisor bot
parent d860782ada
commit 5073588bb1
+1 -1
View File
@@ -854,7 +854,7 @@ func (s *statusFD) Generate(ctx context.Context, buf *bytes.Buffer) error {
fmt.Fprintf(buf, "Uid:\t%d\t%d\t%d\t%d\n", ruid, euid, suid, euid)
fmt.Fprintf(buf, "Gid:\t%d\t%d\t%d\t%d\n", rgid, egid, sgid, egid)
fmt.Fprintf(buf, "FDSize:\t%d\n", fds)
buf.WriteString("Groups:\t ")
buf.WriteString("Groups:\t")
// There is a space between each pair of supplemental GIDs, as well as an
// unconditional trailing space that some applications actually depend on.
var sep string