Merge pull request #5531 from samuelkarp/freebsd-ctr-run-mounts
ctr: parse mount options with embedded = character
This commit is contained in:
commit
96df20cf77
@ -63,8 +63,8 @@ func parseMountFlag(m string) (specs.Mount, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, field := range fields {
|
for _, field := range fields {
|
||||||
v := strings.Split(field, "=")
|
v := strings.SplitN(field, "=", 2)
|
||||||
if len(v) != 2 {
|
if len(v) < 2 {
|
||||||
return mount, fmt.Errorf("invalid mount specification: expected key=val")
|
return mount, fmt.Errorf("invalid mount specification: expected key=val")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user