From 8c1883721c28d09c5c3629db7e0d77344f5f7bd9 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Mon, 1 Jun 2020 08:59:07 -0500 Subject: Fix leak of empty tarball In cases of trying to export an image, if the image was not found, we leaked an empty tarball or directory depending on the format. Fixes: #6409 Signed-off-by: Brent Baude --- test/e2e/images_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go index 1b23aba36..9a073cde6 100644 --- a/test/e2e/images_test.go +++ b/test/e2e/images_test.go @@ -179,7 +179,7 @@ var _ = Describe("Podman images", func() { It("podman images filter before image", func() { SkipIfRemote() dockerfile := `FROM docker.io/library/alpine:latest -RUN apk update && apk add man +RUN apk update && apk add strace ` podmanTest.BuildImage(dockerfile, "foobar.com/before:latest", "false") result := podmanTest.Podman([]string{"images", "-q", "-f", "before=foobar.com/before:latest"}) -- cgit v1.2.3-54-g00ecf