summaryrefslogtreecommitdiff
path: root/copy.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2005-10-26 17:27:36 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-10-26 18:58:24 (GMT)
commit7ebb6fcafed2a3d47390e6f47ff20a98fe451409 (patch)
tree2ccc66e0795aad2eb16f95616f1704235f8c93ab /copy.c
parentb5c367f75c2990650119749a1add5216871ca47a (diff)
downloadgit-7ebb6fcafed2a3d47390e6f47ff20a98fe451409.zip
git-7ebb6fcafed2a3d47390e6f47ff20a98fe451409.tar.gz
git-7ebb6fcafed2a3d47390e6f47ff20a98fe451409.tar.bz2
Fix what to do and how to detect when hardlinking fails
Recent FAT workaround caused compilation trouble on OpenBSD; different platforms use different error codes when we try to hardlink the temporary file to its final location. Existing Coda hack also checks its own error code, but the thing is, the case we care about is if link failed for a reason other than that the final file has already existed (which would be normal, or it could mean collision). So just check the error code against EEXIST. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'copy.c')
0 files changed, 0 insertions, 0 deletions