diff options
Diffstat (limited to 'pkg/sentry/loader/interpreter.go')
-rw-r--r-- | pkg/sentry/loader/interpreter.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/loader/interpreter.go b/pkg/sentry/loader/interpreter.go index b8ecbe92f..7249b8f30 100644 --- a/pkg/sentry/loader/interpreter.go +++ b/pkg/sentry/loader/interpreter.go @@ -82,6 +82,11 @@ func parseInterpreterScript(ctx context.Context, filename string, f *fs.File, ar } } + if string(interp) == "" { + ctx.Infof("Interpreter script contains no interpreter: %v", line) + return "", []string{}, syserror.ENOEXEC + } + // Build the new argument list: // // 1. The interpreter. |