]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: fix ‘cp -rx / /mnt’
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 11 Jun 2022 17:49:18 +0000 (10:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 11 Jun 2022 17:53:59 +0000 (10:53 -0700)
commitb54da709a1f3a6f10ed3150b0ae5269002a1053c
tree20b6327239a6189144624aa6fcd5a92d9587e473
parent93e099e4c3b659b2e329f655fbdc73fdf594a66e
cp: fix ‘cp -rx / /mnt’

Problem reported by pkoraou@gmail.com (Bug#55910).
* src/copy.c (copy_internal): Treat a relative destination name ""
as if it were "." for the purpose of directory-relative syscalls
like fstatat that might might refer to the destination directory.
NEWS
src/copy.c