summaryrefslogtreecommitdiff
path: root/pkg/spec
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-12-19 15:57:24 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2018-12-21 09:25:25 -0500
commit664076c259c8751483fbcbe57ab5273d9f3e5c8c (patch)
treef67902b6af7da2d91c8090426a496c376c4ba7c0 /pkg/spec
parentfaa7ff3568a6cdc52caa99dfa88b656818574fdc (diff)
downloadpodman-664076c259c8751483fbcbe57ab5273d9f3e5c8c.tar.gz
podman-664076c259c8751483fbcbe57ab5273d9f3e5c8c.tar.bz2
podman-664076c259c8751483fbcbe57ab5273d9f3e5c8c.zip
Invalid index for array
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/spec')
-rw-r--r--pkg/spec/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/spec/parse.go b/pkg/spec/parse.go
index 4d20e35d4..d688b8d1b 100644
--- a/pkg/spec/parse.go
+++ b/pkg/spec/parse.go
@@ -166,7 +166,7 @@ func ParseDevice(device string) (string, string, string, error) { //nolint
permissions = arr[1]
} else {
if arr[1][0] != '/' {
- return "", "", "", fmt.Errorf("invalid device mode: %s", arr[2])
+ return "", "", "", fmt.Errorf("invalid device mode: %s", arr[1])
}
dst = arr[1]
}