From 97d47ef3d5efce16571ae62c3d14ed540e538a24 Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Fri, 23 Oct 2020 17:56:22 +0200 Subject: fix: podman-cp respects "--extract" flag Signed-off-by: Matej Vasek --- pkg/domain/infra/abi/cp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/domain') diff --git a/pkg/domain/infra/abi/cp.go b/pkg/domain/infra/abi/cp.go index a0bfcc90c..ab90c8183 100644 --- a/pkg/domain/infra/abi/cp.go +++ b/pkg/domain/infra/abi/cp.go @@ -26,7 +26,7 @@ import ( ) func (ic *ContainerEngine) ContainerCp(ctx context.Context, source, dest string, options entities.ContainerCpOptions) (*entities.ContainerCpReport, error) { - var extract bool + extract := options.Extract srcCtr, srcPath := parsePath(ic.Libpod, source) destCtr, destPath := parsePath(ic.Libpod, dest) -- cgit v1.2.3-54-g00ecf