1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-13 02:42:18 +02:00

copy: make backup files more reliably

* NEWS, doc/coreutils.texi (Backup options): Document the change.
* bootstrap.conf (gnulib_modules): Add backup-rename.
* src/copy.c (copy_internal): Silently switch to numbered backups
if a simple backup might lose data.  Use backup_file_rename
to avoid races with numbered backups.
* tests/cp/backup-is-src.sh, tests/mv/backup-is-src.sh:
Adjust to match new behavior.
This commit is contained in:
Paul Eggert
2017-07-30 17:11:24 -07:00
parent 2ae1460dad
commit 0d74ac470f
6 changed files with 62 additions and 75 deletions

View File

@@ -35,6 +35,7 @@ gnulib_modules="
assert
autobuild
backupfile
backup-rename
base32
base64
buffer-lcm