Skip to content

Commit

Permalink
git-apply: bad patch fragments are fatal
Browse files Browse the repository at this point in the history
Don't just stop at them and look for the next header. Die,
die, die!
  • Loading branch information
Linus Torvalds committed May 23, 2005
1 parent 5831b56 commit 5e224a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ static int apply_single_patch(char *line, unsigned long size)
while (size > 4 && !memcmp(line, "@@ -", 4)) {
int len = apply_fragment(line, size);
if (len <= 0)
break;
die("corrupt patch");

printf("applying fragment:\n%.*s\n\n", len, line);

Expand Down

0 comments on commit 5e224a2

Please sign in to comment.