podman cp cont:/tmp/foo.bar baz" always tries to create a new directory #3460
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When using
podman cp
to copy a file from a container to the local machine, the file is always created in a new directory, contrary to the documented behaviour.Steps to reproduce the issue:
Describe the results you received:
A new directory is created with the basename of the source file, and then the file is created in that directory.
Describe the results you expected:
The file should be created as
./foo.bar
not./foo.bar/foo.bar
The behaviour documented in the
podman-cp
man page is:Additional information you deem important (e.g. issue happens only occasionally):
This is 100% reproducible, and fails to do what the man page says in all cases.
Nope, it's saved to a directory with that name instead:
Nope, created into a sub-directory of
dest_path
:Nope, it tries to create a directory with that name and fails:
Nope:
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
Physical box running Fedora 30, with
podman
installed from Fedora RPM repo.I think this behaviour started when upgrading from 1.4.0 to 1.4.2, but I could be wrong.
The text was updated successfully, but these errors were encountered: