bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#55029: Simple backup swaps source and destination files


From: Paul Eggert
Subject: Re: bug#55029: Simple backup swaps source and destination files
Date: Wed, 20 Apr 2022 19:53:06 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0

On 4/19/22 16:05, Steve Ward wrote:
When doing mv or cp with --backup=simple, if an existing file in
DIRECTORY has the same name as SOURCE, the files appear to be swapped
instead of an in-place backup of the original file in DIRECTORY being
made.

Thanks for the bug report. That's new to coreutils 9.1, and is a big enough fail that it suggests we'll need a 9.2 sooner rather than later. I introduced the bug when fixing an earlier bug (sorry).

I installed the attached Gnulib patch, which should fix the bug in Coreutils, with the attached two Coreutils patches to update to the latest Gnulib, and to add a test case for the bug.

Attachment: 0001-backupfile-fix-bug-when-renaming-simple-backups.patch
Description: Text Data

Attachment: 0001-build-update-gnulib-submodule-to-latest.patch
Description: Text Data

Attachment: 0002-mv-test-Bug-55029.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]