mirror of
https://github.com/containers/podman.git
synced 2025-10-19 04:03:23 +08:00
Invalid index for array
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -166,7 +166,7 @@ func ParseDevice(device string) (string, string, string, error) { //nolint
|
|||||||
permissions = arr[1]
|
permissions = arr[1]
|
||||||
} else {
|
} else {
|
||||||
if arr[1][0] != '/' {
|
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]
|
dst = arr[1]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user