From f3a8e3324f206339386b541927445926dd137ad2 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Mon, 22 Feb 2021 15:22:29 +0100 Subject: 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 --- cmd/podman/containers/cp.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'cmd/podman') 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. -- cgit v1.2.3-54-g00ecf