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

Skip to content

Commit 59db86e

Browse files
chore: feedback from another PR
1 parent f368cc1 commit 59db86e

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
@@ -1442,7 +1442,7 @@ func (api *API) maybeInjectSubAgentIntoContainerLocked(ctx context.Context, dc c
14421442
return xerrors.Errorf("set agent binary executable: %w", err)
14431443
}
14441444

1445-
// Make sure the agent binary is executable so we can run it.
1445+
// Make sure the agent binary is owned by a valid user 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 {
14471447
return xerrors.Errorf("set agent binary ownership: %w", err)
14481448
}

0 commit comments

Comments
 (0)