diff options
author | Qi Wang <qiwan@redhat.com> | 2019-09-24 11:35:49 -0400 |
---|---|---|
committer | Qi Wang <qiwan@redhat.com> | 2019-09-25 12:48:05 -0400 |
commit | 0144c3796ba3dd0555e35fd2cc3f76bde10a90a0 (patch) | |
tree | 3548d0de8326852e12d965492b2cad7fa131953a /docs | |
parent | f197ebe8519198ea24a0a395ffeb97711a248c27 (diff) | |
download | podman-0144c3796ba3dd0555e35fd2cc3f76bde10a90a0.tar.gz podman-0144c3796ba3dd0555e35fd2cc3f76bde10a90a0.tar.bz2 podman-0144c3796ba3dd0555e35fd2cc3f76bde10a90a0.zip |
fix cp none exists dest path ends with '/'
close #3894
This patch let podman cp return 'no such file or directory' error if DEST_PATH does not exist and ends with / when copying file.
Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/podman-cp.1.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/podman-cp.1.md b/docs/podman-cp.1.md index 736bdb12a..0f54b2e8b 100644 --- a/docs/podman-cp.1.md +++ b/docs/podman-cp.1.md @@ -29,7 +29,7 @@ Assuming a path separator of /, a first argument of **src_path** and second argu - **dest_path** does not exist - the file is saved to a file created at **dest_path** - **dest_path** does not exist and ends with / - - **dest_path** is created as a directory and the file is copied into this directory using the basename from **src_path** + - Error condition: the destination directory must exist. - **dest_path** exists and is a file - the destination is overwritten with the source file's contents - **dest_path** exists and is a directory |