Hi, Trying to apply a random (git-style) patch in reverse and typing _R instead of -R, causes 'patch' to go spinning in circles and in the end segfault.
For example, with the attached patch, running: patch -p1 <foo.patch _R 2>ERRORS results in: patching file _R Hunk #1 FAILED at 4. 1 out of 1 hunk FAILED -- saving rejects to file _R.rej Segmentatiefout head ERRORS patch: **** Can't reopen file _R : No such file or directory patch: **** Can't reopen file _R : No such file or directory patch: **** Can't reopen file _R : No such file or directory patch: **** Can't reopen file _R : No such file or directory patch: **** Can't reopen file _R : No such file or directory patch: **** Can't reopen file _R : No such file or directory patch: **** Can't reopen file _R : No such file or directory patch: **** Can't reopen file _R : No such file or directory patch: **** Can't reopen file _R : No such file or directory patch: **** Can't reopen file _R : No such file or directory wc --lines ERRORS 11156 ERRORS The patch posted by Lubomir Rintel earlier this month avoids the problem. patch --version | head -1 GNU patch 2.7.6 Benno
diff --git a/README b/README index 45bccce0..29bf1edd 100644 --- a/README +++ b/README @@ -4,7 +4,7 @@ Overview The nano project was started because of a few "problems" with the - wonderfully easy-to-use and friendly Pico text editor. + wonderfully easy-to-use and friendly foo Pico text editor. First and foremost was its license: the Pine suite does not use the GPL or a GPL-friendly license, and has unclear restrictions on
signature.asc
Description: OpenPGP digital signature