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:
@@ -35,6 +35,7 @@ gnulib_modules="
|
||||
assert
|
||||
autobuild
|
||||
backupfile
|
||||
backup-rename
|
||||
base32
|
||||
base64
|
||||
buffer-lcm
|
||||
|
||||
Reference in New Issue
Block a user