maint: copy: refactor hard link creation
commit42300faaa90e69caf6c728a1ed0cf1abe67f6e3b
authorPádraig Brady <P@draigBrady.com>
Wed, 27 Jul 2011 12:22:39 +0000 (27 13:22 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 27 Jul 2011 12:32:32 +0000 (27 13:32 +0100)
treecd08a50181c1e0de3c89cfc9564dbb3501cc54d3
parent2aea1828a1aab158f68cccf3eac408203889021e
maint: copy: refactor hard link creation

* src/copy.c (create_hard_link): A new function refactored
from existing code.
(copy_internal): Call the new function from all 3 locations
that create hard links.
* tests/cp/same-file: Amend to match the adjusted diagnostic.
src/copy.c
tests/cp/same-file