aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/patch
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2017-11-08 23:11:15 +0000
committerKyle Evans <kevans@FreeBSD.org>2017-11-08 23:11:15 +0000
commit752e881db7398b10410d26c7d69176ec998d9c3b (patch)
treeae5af4526dcc034f86f098750d84af5bb9139d44 /usr.bin/patch
parent70bc7e51ca16813c6c08cc740abafd6ba2a29c70 (diff)
downloadsrc-752e881db7398b10410d26c7d69176ec998d9c3b.tar.gz
src-752e881db7398b10410d26c7d69176ec998d9c3b.zip
Revert r325365
r325365 caused several ports to fail to patch correctly. Revert it for the time being until an exp-run can be completed. Requested by: antoine Approved by: emaste (implicit)
Notes
Notes: svn path=/head/; revision=325564
Diffstat (limited to 'usr.bin/patch')
-rw-r--r--usr.bin/patch/patch.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c
index 204b1146b94c..24e09ed304ad 100644
--- a/usr.bin/patch/patch.c
+++ b/usr.bin/patch/patch.c
@@ -1026,9 +1026,6 @@ patch_match(LINENUM base, LINENUM offset, LINENUM fuzz)
const char *plineptr;
unsigned short plinelen;
- /* Patch does not match if we don't have anymore context to use */
- if (pline > pat_lines)
- return false;
for (iline = base + offset + fuzz; pline <= pat_lines; pline++, iline++) {
ilineptr = ifetch(iline, offset >= 0);
if (ilineptr == NULL)