Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e5373c

Browse files
chore: copilot feedback
Co-authored-by: Copilot <[email protected]>
1 parent cb0786e commit 6e5373c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agentcontainers/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ func (api *API) maybeInjectSubAgentIntoContainerLocked(ctx context.Context, dc c
14441444

14451445
// Make sure the agent binary is executable so we can run it.
14461446
if _, err := api.ccli.ExecAs(ctx, container.ID, "root", "/bin/sh", "-c", fmt.Sprintf("chown $(id -u):$(id -g) %s", coderPathInsideContainer)); err != nil {
1447-
return xerrors.Errorf("set agent binary executable: %w", err)
1447+
return xerrors.Errorf("set agent binary ownership: %w", err)
14481448
}
14491449

14501450
// Attempt to add CAP_NET_ADMIN to the binary to improve network

0 commit comments

Comments
 (0)