Handle ArgsEscaped for new Sb Server

The PR https://github.com/containerd/containerd/pull/8198 fixed this for CRI but missed clearing the commandline in the forked SB server. This simply adds that back in

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
This commit is contained in:
James Sturtevant 2023-11-01 12:06:07 -07:00
parent 19ff94b701
commit 0ffc3e9873
No known key found for this signature in database

View File

@ -146,6 +146,8 @@ func (c *criService) execInternal(ctx context.Context, container containerd.Cont
}
pspec.Args = opts.cmd
// CommandLine may already be set on the container's spec, but we want to only use Args here.
pspec.CommandLine = ""
if opts.stdout == nil {
opts.stdout = cio.NewDiscardLogger()