summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-06-12 03:38:50 +0000
committergVisor bot <gvisor-bot@google.com>2021-06-12 03:38:50 +0000
commit5f0ebe52c8007470ed0e023d24932547befa4574 (patch)
treedf1cecf95bf2c97eb49735910e480699873c8f1d /pkg
parent75fa1f12952875b3125deb542c15d13a430a17c1 (diff)
parentb92e8ee8d6744d81383f4265faa008ccce894f5e (diff)
Merge release-20210601.0-51-gb92e8ee8d (automated)
Diffstat (limited to 'pkg')
-rw-r--r--pkg/sentry/loader/interpreter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/loader/interpreter.go b/pkg/sentry/loader/interpreter.go
index 3886b4d33..3e302d92c 100644
--- a/pkg/sentry/loader/interpreter.go
+++ b/pkg/sentry/loader/interpreter.go
@@ -59,7 +59,7 @@ func parseInterpreterScript(ctx context.Context, filename string, f fsbridge.Fil
// Linux silently truncates the remainder of the line if it exceeds
// interpMaxLineLength.
i := bytes.IndexByte(line, '\n')
- if i > 0 {
+ if i >= 0 {
line = line[:i]
}