Browse Source

Merge pull request #13895 from calavera/fix_get_env_split

Correct getEnv split.
Tibor Vass 10 years ago
parent
commit
f27c9bc6e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      daemon/execdriver/driver_linux.go

+ 1 - 1
daemon/execdriver/driver_linux.go

@@ -38,7 +38,7 @@ func InitContainer(c *Command) *configs.Config {
 
 func getEnv(key string, env []string) string {
 	for _, pair := range env {
-		parts := strings.Split(pair, "=")
+		parts := strings.SplitN(pair, "=", 2)
 		if parts[0] == key {
 			return parts[1]
 		}