summaryrefslogtreecommitdiff
path: root/THANKS.in
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2018-05-14 02:26:05 -0700
committerPádraig Brady <P@draigBrady.com>2018-05-15 09:55:19 -0700
commitd3daa95096e2692e5c8a0402e270b0e2ec7918e5 (patch)
tree9a1a47b7811a547b11937d12c2bbaffa63a7c6b5 /THANKS.in
parenta391007511cebe4a1731d85b4808499293c67173 (diff)
downloadcoreutils-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.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/THANKS.in b/THANKS.in
index c63cc9bc7..3951b66d6 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -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