--- Begin Message ---
Subject: |
mv: deletes src file on error |
Date: |
Fri, 26 Nov 2021 11:07:09 +0000 |
Hi,
Given two files: an old version of "foo" on a mounted USB stick:
/mnt/dst/foo
and a new version of "foo" in /src/foo on the system's hard drive. When
I do:
sudo mv /src/foo /mnt/dst/foo
I get the following error:
mv: failed to preserve ownership for '/mnt/dst/foo': Operation not permitted
The error is fine but mv deletes /src/foo and keeps mnt/dst/foo,
meaning that the data of the new file is lost. Is this the intended
behaviour? I'm using Coreutils 9.0.
Kind regards,
Frank
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#52122: mv: deletes src file on error |
Date: |
Fri, 26 Nov 2021 10:18:44 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 |
On 11/26/21 04:23, Frank Busse wrote:
I
guess it was a hiccup somewhere else in the system, sorry.
Thanks for following up; closing the bug report.
--- End Message ---