Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Nov 2017 03:44:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 223545] [exp-run] patch(1) change to reject non-matching patches with limited context
Message-ID:  <bug-223545-13-iVyBUdbofd@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223545-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223545-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223545

--- Comment #13 from commit-hook@freebsd.org ---
A commit references this bug:

Author: kevans
Date: Wed Nov 22 03:44:20 UTC 2017
New revision: 326084
URL: https://svnweb.freebsd.org/changeset/base/326084

Log:
  patch(1): don't assume a match if we run out of context to check

  Patches with very little context (-U0 and -U1) could get misapplied if
  the file to be patched changes and a hunk is no longer applicable. Matchi=
ng
  with fuzz would be attempted and default to a match when we unexpectedly =
ran
  out of context.

  This also affected patches with higher levels of context but had limited
  actual context due to the hunk being located near the beginning/end of fi=
le.

  PR:           74127, 223545 (exp-run)
  Reviewed by:  emaste, pfg
  Approved by:  emaste (mentor)
  Differential Revision:        https://reviews.freebsd.org/D12631

Changes:
  head/usr.bin/patch/patch.c

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223545-13-iVyBUdbofd>