[Bug 181369] incompatibility between bsdpatch and gnupatch dealing of filename's delimiter

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 09 Aug 2025 00:34:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=181369

Kyle Evans <kevans@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |Not A Bug
             Status|Open                        |Closed
                 CC|                            |kevans@freebsd.org

--- Comment #3 from Kyle Evans <kevans@freebsd.org> ---
I'm tentatively closing this as Not A Bug, 12 years later, but feel free to
refute.  My general feeling here is that allowing some wiggle room here leads
us into not-so-great territory.  We could certainly coalesce any trailing
spaces when we encounter a tab, but who's to say those spaces weren't
significant?  That kind of pushes us down a path where we try to open the file,
and if it fails we keep stripping off a single unit of trailing whitespace
until we either run out or the open() succeeds, and I'm not sure I really like
that kind of guessing.

My gut feeling here is that we shouldn't try to accept patches kind of
malformed here, lest we do something wrong in trying to guess.

-- 
You are receiving this mail because:
You are the assignee for the bug.