mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #18025 from Microsoft/10662-ArgumentEscaping
Windows: Fix docker exec
This commit is contained in:
commit
6f1bc096a6
1 changed files with 3 additions and 2 deletions
|
@ -30,10 +30,11 @@ func (d *Driver) Exec(c *execdriver.Command, processConfig *execdriver.ProcessCo
|
||||||
WorkingDirectory: c.WorkingDir,
|
WorkingDirectory: c.WorkingDir,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure the environment for the process // Note NOT c.ProcessConfig.Tty
|
// Configure the environment for the process // Note NOT c.ProcessConfig.Env
|
||||||
createProcessParms.Environment = setupEnvironmentVariables(processConfig.Env)
|
createProcessParms.Environment = setupEnvironmentVariables(processConfig.Env)
|
||||||
|
|
||||||
createProcessParms.CommandLine, err = createCommandLine(&c.ProcessConfig, c.ArgsEscaped)
|
// Create the commandline for the process // Note NOT c.ProcessConfig
|
||||||
|
createProcessParms.CommandLine, err = createCommandLine(processConfig, false)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return -1, err
|
return -1, err
|
||||||
|
|
Loading…
Add table
Reference in a new issue