From: Denis Vlasenko Date: Sun, 17 Dec 2006 00:49:56 +0000 (-0000) Subject: diff: comment - explain what happens when hunk fails to apply X-Git-Tag: 1_4_0~239 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0a10da29a7075dc5d6909e76da5239e2952ac662;p=oweals%2Fbusybox.git diff: comment - explain what happens when hunk fails to apply --- diff --git a/editors/patch.c b/editors/patch.c index d13b06a83..f8d7605c0 100644 --- a/editors/patch.c +++ b/editors/patch.c @@ -15,9 +15,8 @@ * * Issues * - Non-interactive - * - Patches must apply cleanly or the hunk will fail. + * - Patches must apply cleanly or patch (not just one hunk) will fail. * - Reject file isnt saved - * - */ #include @@ -214,6 +213,8 @@ int patch_main(int argc, char **argv) bb_error_msg("hunk #%d FAILED at %d", hunk_count, hunk_offset_start); hunk_error++; free(patch_line); + /* Probably need to find next hunk, etc... */ + /* but for now we just bail out */ patch_line = NULL; break; }