summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7be77de)
raw | patch | inline | side by side (parent: 7be77de)
author | Alex Riesen <raa.lkml@gmail.com> | |
Fri, 5 Dec 2008 00:39:14 +0000 (01:39 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 5 Dec 2008 02:05:51 +0000 (18:05 -0800) |
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-recursive.c | patch | blob | history |
diff --git a/merge-recursive.c b/merge-recursive.c
index 0e988f2a0081803f5ee30adbf7a548c2c8a00a05..a0c804c8171d021780680f11901680d4c7e89e0b 100644 (file)
--- a/merge-recursive.c
+++ b/merge-recursive.c
char *lnk = xmemdupz(buf, size);
safe_create_leading_directories_const(path);
unlink(path);
- symlink(lnk, path);
+ if (symlink(lnk, path))
+ die("failed to symlink %s: %s", path, strerror(errno));
free(lnk);
} else
die("do not know what to do with %06o %s '%s'",