summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-26 04:45:02 -0400
committerGitHub <noreply@github.com>2020-10-26 04:45:02 -0400
commit8f498b52de43b20d5f9aa83c3a27e0464d41bdee (patch)
tree9fa1febfbc6734da529540061eb9bdff3d830255 /pkg/domain/infra/abi
parentbce8331528c186ef2234a3cfe6c7d0e09da79bdd (diff)
parent97d47ef3d5efce16571ae62c3d14ed540e538a24 (diff)
downloadpodman-8f498b52de43b20d5f9aa83c3a27e0464d41bdee.tar.gz
podman-8f498b52de43b20d5f9aa83c3a27e0464d41bdee.tar.bz2
podman-8f498b52de43b20d5f9aa83c3a27e0464d41bdee.zip
Merge pull request #8119 from matejvasek/cp-extract-flag-fix
fix: respect "--extract" flag for podman cp
Diffstat (limited to 'pkg/domain/infra/abi')
-rw-r--r--pkg/domain/infra/abi/cp.go2
1 files changed, 1 insertions, 1 deletions
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)