From 5073588bb1ad5566bc7da6ecb3e0bb630c070fb7 Mon Sep 17 00:00:00 2001 From: Nicolas Lacasse Date: Mon, 10 Apr 2023 11:02:20 -0700 Subject: [PATCH] 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 --- pkg/sentry/fsimpl/proc/task_files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sentry/fsimpl/proc/task_files.go b/pkg/sentry/fsimpl/proc/task_files.go index 3c7e1704b..d3792a1ee 100644 --- a/pkg/sentry/fsimpl/proc/task_files.go +++ b/pkg/sentry/fsimpl/proc/task_files.go @@ -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