]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
mv: Bug#52410 fix
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Dec 2021 22:08:58 +0000 (14:08 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Dec 2021 22:10:51 +0000 (14:10 -0800)
The recent Gnulib update fixed this bug reported by Vincent Vermilya.
* tests/mv/backup-dir.sh: Test for Bug#52410.

NEWS
tests/mv/backup-dir.sh

diff --git a/NEWS b/NEWS
index 61f58b668f47fc314b6a02573cd6fcfbbdb9b547..c2ecdedfa27891e0e9015e80dbeb7eb5507cd086 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,10 @@ GNU coreutils NEWS                                    -*- outline -*-
   and B is in some other file system.
   [bug introduced in coreutils-9.0]
 
+  'mv -T --backup=numbered A B/' no longer miscalculates the backup number
+  for B when A is a directory, possibly inflooping.
+  [bug introduced in coreutils-6.3]
+
 ** Changes in behavior
 
   timeout --foreground --kill-after=... will now exit with status 137
index f920f319d45864f792be7820ce682009dd1f4ac3..045228f4eb393e77f63a48120e21889c7daaf1fa 100755 (executable)
@@ -31,4 +31,9 @@ EOF
 
 compare exp out || fail=1
 
+# Bug#52410
+mkdir C D E || framework_failure_
+mv -T --backup=numbered C E/ || fail=1
+mv -T --backup=numbered D E/ || fail=1
+
 Exit $fail