|
From: | Paul Eggert |
Subject: | bug#19616: [Bug-tar] dist tarball contains hardlinks |
Date: | Fri, 23 Jan 2015 08:19:55 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
Dimitrios Apostolou wrote:
$ touch blah $ ln -s blah link_to_blah $ cp --dereference link_to_blah blah2 The result is that "blah" and "blah2" have different inode!
Of course, and that's what one would expect, cp makes copies by default, and the copies have a different inode from the original.
I was referring to something like this: touch blah ln -s blah link_to_blah mkdir dir cp -a --dereference blah link_to_blah dirThis creates two hard links in dir, to the same new file. ("-a" attempts to make "cp" act as much like "tar" as it can.)
[Prev in Thread] | Current Thread | [Next in Thread] |