Skip to content

Commit

Permalink
Fix the omegajail invocation (#107)
Browse files Browse the repository at this point in the history
Turns out that `exec.Command` doesn't like having the first arg there.
  • Loading branch information
lhchavez authored Jan 22, 2023
1 parent e5c8819 commit cc977cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func (o *OmegajailSandbox) invokeOmegajail(ctx *common.Context, omegajailParams
"params": shellquote.Join(omegajailFullParams...),
},
)
cmd := exec.Command(omegajailFullParams[0], omegajailFullParams...)
cmd := exec.Command(omegajailFullParams[0], omegajailFullParams[1:]...)
omegajailErrorFile := errorFile + ".omegajail"
omegajailErrorFd, err := os.Create(omegajailErrorFile)
if err != nil {
Expand Down

0 comments on commit cc977cb

Please sign in to comment.