[RFC PATCH 1/1] patch: fix seg fault caused by malformed patch

2015-02-26 Thread Jim Keniston
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

Re: [RFC PATCH 1/1] patch: fix seg fault caused by malformed patch

2015-03-05 Thread Jim Keniston
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 @