diff options
author | Denis Vlasenko | 2006-12-17 00:49:56 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-17 00:49:56 +0000 |
commit | 0a10da29a7075dc5d6909e76da5239e2952ac662 (patch) | |
tree | 99d92d79790ef7519c7da322253a40fdee823b54 | |
parent | f7583d89b07f8dd4510d5383d9ce17ac4f8e699f (diff) | |
download | busybox-0a10da29a7075dc5d6909e76da5239e2952ac662.zip busybox-0a10da29a7075dc5d6909e76da5239e2952ac662.tar.gz |
diff: comment - explain what happens when hunk fails to apply
-rw-r--r-- | editors/patch.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editors/patch.c b/editors/patch.c index d13b06a..f8d7605 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 <getopt.h> @@ -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; } |