bug#62607: cp --recursive --backup broken in 9.2

2023-04-04 Thread Pádraig Brady
On 03/04/2023 18:19, Pádraig Brady wrote: On 02/04/2023 13:40, Pádraig Brady wrote: For completeness the correct repro is: mkdir -p {src,dst}/foo touch {src,dst}/foo/bar cp --recursive --backup src/* dst The attached two patches should address this. The first fixes the bug in g

bug#62607: cp --recursive --backup broken in 9.2

2023-04-03 Thread Pádraig Brady
On 02/04/2023 13:40, Pádraig Brady wrote: On 01/04/2023 23:40, Kristian Klausen via GNU coreutils Bug Reports wrote: Hi After upgrading to coreutils 9.2-2 on Arch Linux the following: mkdir -p src dst touch {src,dst}/bar cp --recursive --backup src/* dst fails with: cp: cannot create regular fi

bug#62607: cp --recursive --backup broken in 9.2

2023-04-02 Thread Pádraig Brady
On 01/04/2023 23:40, Kristian Klausen via GNU coreutils Bug Reports wrote: Hi After upgrading to coreutils 9.2-2 on Arch Linux the following: mkdir -p src dst touch {src,dst}/bar cp --recursive --backup src/* dst fails with: cp: cannot create regular file 'dst/foo/bar': File exists Running stra

bug#62607: cp --recursive --backup broken in 9.2

2023-04-01 Thread Kristian Klausen via GNU coreutils Bug Reports
Hi After upgrading to coreutils 9.2-2 on Arch Linux the following: mkdir -p src dst touch {src,dst}/bar cp --recursive --backup src/* dst fails with: cp: cannot create regular file 'dst/foo/bar': File exists Running strace on cp I noticed: renameat2(4, "foo/bar", 4, "foo/bar~", 0) = -1 ENOENT (N