bug#18499: Possible mv race for hardlinks (rhbz #1141368 )
From:
Ondrej Vasik
Subject:
bug#18499: Possible mv race for hardlinks (rhbz #1141368 )
Date:
Thu, 18 Sep 2014 12:52:32 +0200
Hi,
as reported in https://bugzilla.redhat.com/show_bug.cgi?id=1141368 ,
there is a possible race condition in mv in the case of hardlinks.
Bug is reproducible even on ext4 filesystem (I guess it is filesystem
independent), even with the latest coreutils. There was already attempt
to fix the non-atomicity of mv for hardlinks
( http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/12985 ), from
the current reproducer it looks like the fix is probably incomplete.
Regards,
Ondrej Vasik