diff options
author | Pádraig Brady <P@draigBrady.com> | 2018-05-14 02:26:05 -0700 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2018-05-15 09:55:19 -0700 |
commit | d3daa95096e2692e5c8a0402e270b0e2ec7918e5 (patch) | |
tree | 9a1a47b7811a547b11937d12c2bbaffa63a7c6b5 /THANKS.in | |
parent | a391007511cebe4a1731d85b4808499293c67173 (diff) | |
download | coreutils-d3daa95096e2692e5c8a0402e270b0e2ec7918e5.tar.gz |
cp: fix symlink checks when overwriting files
Ensure this _does_ recreate the symlink
Given "path1" and "path2" are on different devices.
$ touch "path1/file"
$ cd path2/; ln -s path1/file
$ cp -dsf path1/file .
Ensure this does _not_ overwrite file
$ touch file
$ ln -s file l1
$ cp -sf l1 file
* src/copy.c (same_file_ok): Remove device ids from consideration,
instead deferring to future EXDEV with --link or allowing
the first case above to work.
Also ensure that we do not exist this function too early,
when the destination file is not a symlink, which protects
against the second case.
* tests/cp/cross-dev-symlink.sh: Add a test for the first case.
* tests/cp/same-file.sh: Add a test for the second case above.
* NEWS: Mention the bug fixes.
* THANKS.in: Mention the reporters who also analyzed the code.
Fixes https://bugs.gnu.org/31364
Diffstat (limited to 'THANKS.in')
-rw-r--r-- | THANKS.in | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -261,6 +261,7 @@ Ian Kent ikent@redhat.com Ian Lance Taylor ian@cygnus.com Ian Turner vectro@pipeline.com Iida Yosiaki iida@gnu.org +Illia Bobyr ibobyr@google.com Ilya N. Golubev gin@mo.msk.ru Ingo Saitz ingo@debian.org Ivan Labath labath3@st.fmph.uniba.sk @@ -285,6 +286,7 @@ Jan-Pawel Wrozstinski jpwroz@gmail.com Jari Aalto jari.aalto@cante.net Jarkko Hietaniemi jhi@epsilon.hut.fi Jarod Wilson jwilson@redhat.com +Jason Smith jasonmsmith@google.com Jean Charles Delepine delepine@u-picardie.fr Jean-Pierre Tosoni jpt.7196@gmail.com Jeff Moore jbm@mordor.com |