diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-23 12:31:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-23 12:31:59 -0700 |
commit | 5e224a2ed01facb1233474dd169307f499e70257 (patch) | |
tree | 0dd1be2bcb0233828361603b68cccfb85fec9a51 /apply.c | |
parent | 5831b563a442e7c3198a444a51d8caba4d072506 (diff) | |
download | git-5e224a2ed01facb1233474dd169307f499e70257.tar.gz git-5e224a2ed01facb1233474dd169307f499e70257.tar.xz |
git-apply: bad patch fragments are fatal
Don't just stop at them and look for the next header. Die,
die, die!
Diffstat (limited to 'apply.c')
-rw-r--r-- | apply.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |