-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman cp dereferences symlink in host context after filepath.Glob(srcPath) #3829
Comments
Still, |
Sorry, replace |
Sorry, I used some other file path and did a replace string in my editor to get /etc/hosts . That was not a good idea I realize now. I thought the actual file path was irrelevant. |
And I verified that the file /tmp/hostdir/hello.txt was not included in the container,
|
Another thing (not strictly this bug but closely related) is the handling of "-". The check to see if such a command line argument is given should be done on the actual command line arguments given (not on the result of symlink dereferencing or |
podman cp has had some unexpected bugs, and still has some surprising behavior. It looks like this part of the code is fragile. Add tests to try to prevent future breakages. Note that two of the new tests are disabled (skipped) until containers#3829 gets fixed. Signed-off-by: Ed Santiago <[email protected]>
Issue containers#3829 (cp symlinks) has been fixed: enable tests for it And, it looks like podman-remote is now handling exit status of a force-rm'ed container. Enable that test too. Signed-off-by: Ed Santiago <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
may resolve a symlink in the host context (e.g. the file /tmp/hostdir/hello.txt) and copy it into
the directory /tmp/test
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
I would not have expected to see the files /tmp/test/hello.txt and /tmp/test/file*
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: