diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-02-18 17:56:47 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2021-02-19 12:21:09 +0100 |
commit | a3c8782998140d4203a71fd0cdded9fde55550eb (patch) | |
tree | 64b61c1bdbfa84528b3380b75055647bbfa5d461 /pkg/autoupdate | |
parent | 7e286bc430ea50b72e972e48626298ac2e1f258a (diff) | |
download | podman-a3c8782998140d4203a71fd0cdded9fde55550eb.tar.gz podman-a3c8782998140d4203a71fd0cdded9fde55550eb.tar.bz2 podman-a3c8782998140d4203a71fd0cdded9fde55550eb.zip |
cp: treat "." and "/." correctly
Make sure to treat "." and "/." correctly. Both cases imply to copy the
contents of a directory in contrast to the directory. This implies to
unset the KeepDirectoryNames options of the copiah package.
Previously, the code was performing a simple string suffix check which
is not enough since it would match files and directories ending with
".".
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/autoupdate')
0 files changed, 0 insertions, 0 deletions