mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Return bufio error if set in ParseEnvFile
Return an error value if bufio failed to properly read a token. Avoids running a container with partial environment. Fixes: #14266 Signed-off-by: Matthieu Hauglustaine <matt.hauglustaine@gmail.com>
This commit is contained in:
parent
bb2cd98b28
commit
e848494017
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ func ParseEnvFile(filename string) ([]string, error) {
|
|||
}
|
||||
}
|
||||
}
|
||||
return lines, nil
|
||||
return lines, scanner.Err()
|
||||
}
|
||||
|
||||
var whiteSpaces = " \t"
|
||||
|
|
Loading…
Reference in a new issue