Skip to content

Commit 96df20c

Browse files
authored
Merge pull request #5531 from samuelkarp/freebsd-ctr-run-mounts
ctr: parse mount options with embedded = character
2 parents ba4fa32 + 535d9cc commit 96df20c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/ctr/commands/run/run.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ func parseMountFlag(m string) (specs.Mount, error) {
6363
}
6464

6565
for _, field := range fields {
66-
v := strings.Split(field, "=")
67-
if len(v) != 2 {
66+
v := strings.SplitN(field, "=", 2)
67+
if len(v) < 2 {
6868
return mount, fmt.Errorf("invalid mount specification: expected key=val")
6969
}
7070

0 commit comments

Comments
 (0)