Fix for Daemon crashing when wildcards are used for COPY/ADD

in the filename and the command itself

Closes #12267

Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
Doug Davis
2015-04-27 19:09:57 -07:00
parent aebeefa886
commit 82daa43844
3 changed files with 32 additions and 5 deletions
-1
View File
@@ -663,7 +663,6 @@ func fakeContextAddDockerfile(ctx *FakeContext, dockerfile string) error {
func fakeContext(dockerfile string, files map[string]string) (*FakeContext, error) {
ctx, err := fakeContextWithFiles(files)
if err != nil {
ctx.Close()
return nil, err
}
if err := fakeContextAddDockerfile(ctx, dockerfile); err != nil {