From: Paul Eggert Date: Fri, 10 Dec 2021 22:08:58 +0000 (-0800) Subject: mv: Bug#52410 fix X-Git-Tag: v9.1~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8931d571d06b9d7b01b47bca265996cfbb285cdc;p=thirdparty%2Fcoreutils.git mv: Bug#52410 fix The recent Gnulib update fixed this bug reported by Vincent Vermilya. * tests/mv/backup-dir.sh: Test for Bug#52410. --- diff --git a/NEWS b/NEWS index 61f58b668f..c2ecdedfa2 100644 --- 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 diff --git a/tests/mv/backup-dir.sh b/tests/mv/backup-dir.sh index f920f319d4..045228f4eb 100755 --- a/tests/mv/backup-dir.sh +++ b/tests/mv/backup-dir.sh @@ -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