Skip to content

Commit

Permalink
Report symlink failures in merge-recursive
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Alex Riesen authored and Junio C Hamano committed Dec 5, 2008
1 parent 7be77de commit 304dcf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion merge-recursive.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,8 @@ static void update_file_flags(struct merge_options *o,
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'",
Expand Down

0 comments on commit 304dcf2

Please sign in to comment.