diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-02-22 15:22:29 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2021-02-22 16:45:31 +0100 |
commit | f3a8e3324f206339386b541927445926dd137ad2 (patch) | |
tree | 62e12d57403a613ca496e067c79436dc3bac01ee /cmd/podman | |
parent | 8577be72e8ec7fa597c7196bca0705d2c66083e0 (diff) | |
download | podman-f3a8e3324f206339386b541927445926dd137ad2.tar.gz podman-f3a8e3324f206339386b541927445926dd137ad2.tar.bz2 podman-f3a8e3324f206339386b541927445926dd137ad2.zip |
podman cp: test /dev/stdin correctly
/dev/stdin should not be treated as "-" to remain compatible with Docker
and to have a more consistent and idiomatic interface.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/containers/cp.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd/podman/containers/cp.go b/cmd/podman/containers/cp.go index b29a95707..7887e9539 100644 --- a/cmd/podman/containers/cp.go +++ b/cmd/podman/containers/cp.go @@ -231,8 +231,6 @@ func copyToContainer(container string, containerPath string, hostPath string) er if hostPath == "-" { hostPath = os.Stdin.Name() isStdin = true - } else if hostPath == os.Stdin.Name() { - isStdin = true } // Make sure that host path exists. |