busybox's patch command dies with a SIGSEGV if the "---" line that heralds
a new file to patch is missing. GNU patch silently does what's apparently
wanted, based on the "+++" line.
Signed-off-by: Jim Keniston
diff -up ./editors/patch.c.orig ./editors/patch.c
--- ./editors/patch.c.orig 201
The busybox FAQ says it's time to post a polite reminder about my
suggested patch. See my original mail below.
Here's a sample patch that triggers the seg fault:
=== cut here ===
-- dwarves.orig 2015-02-25 01:45:27.75300 +
+++ dwarves 2015-02-25 01:46:08.19900 +
@@ -1,7 +1,7 @