bug-coreutils
[Top][All Lists]
Advanced

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

bug#18499: Possible mv race for hardlinks (rhbz #1141368 )


From: Pádraig Brady
Subject: bug#18499: Possible mv race for hardlinks (rhbz #1141368 )
Date: Sat, 22 Nov 2014 03:49:33 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

I just realised that this change avoids a more problematic issue.
The loss of files on case insensitive file systems supporting hardlinks.
Consider hfs...

  $ truncate -s1G hfs.img
  $ mkfs.hfsplus hfs.img
  $ mkdir hfs
  $ sudo mount hfs.img hfs
  $ sudo su
  # cd hfs
  # touch foo
  # ln foo blah
  # mv foo Foo  # foo is removed!
  # ls -l
  -rw-r--r--. 1 root root 0 Nov 22 02:42 blah

In the attached patch I've added a test case,
removed an old test case that pondered the issue in 5.0.91?,
updated NEWS and mentioned the issue in copy.c

cheers,
Pádraig.

Attachment: mv-hardlink-hfs.patch
Description: Text Data


reply via email to

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