GNU bug report logs - #52122
mv: deletes src file on error

Previous Next

Package: coreutils;

Reported by: Frank Busse <f.busse <at> imperial.ac.uk>

Date: Fri, 26 Nov 2021 11:10:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Frank Busse <f.busse <at> imperial.ac.uk>
To: Chris Elvidge <celvidge001 <at> gmail.com>
Cc: 52122 <at> debbugs.gnu.org
Subject: bug#52122: mv: deletes src file on error
Date: Fri, 26 Nov 2021 12:23:52 +0000
On Fri, 26 Nov 2021 12:05:21 +0000
Chris Elvidge <celvidge001 <at> gmail.com> wrote:

> Is your USB stick (V)FAT(32) (or similar) formatted?

It's FAT32.

> > 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.
> 
> Didn't reproduce this (as root).
> mv (GNU coreutils) 8.32.179-c7577

I tried it several times with checking the timestamps/md5sums of the
files but after remounting the stick it doesn't happen anymore?! I
guess it was a hiccup somewhere else in the system, sorry.


Kind regards,

Frank




This bug report was last modified 3 years and 177 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.