mirror of
https://github.com/containers/podman.git
synced 2025-08-03 01:37:51 +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]
|
||||
} 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]
|
||||
}
|
||||
|
Reference in New Issue
Block a user