[PATCH] tweaks to editors/patch.c

Rob Landley rob at landley.net
Tue Sep 28 20:29:45 UTC 2010


Two things:

1) Eliminate spurious warnings about possibly reduced hunks.  Instead only 
note a possible location if we don't find a non-reversed place to apply it.  
(Otherwise, hunks that move code forward around within a file look reversed at 
the removal site.)

2) Open the source file read-only, so we can apply patches to read-only files.

Rob
-- 
GPLv3: as worthy a successor as The Phantom Menace, as timely as Duke Nukem 
Forever, and as welcome as New Coke.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch1.patch
Type: text/x-patch
Size: 1274 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100928/3d1d9f58/attachment.bin>


More information about the busybox mailing list