From 664076c259c8751483fbcbe57ab5273d9f3e5c8c Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 19 Dec 2018 15:57:24 -0500 Subject: Invalid index for array Signed-off-by: Daniel J Walsh --- pkg/spec/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') 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] } -- cgit v1.2.3-54-g00ecf