got patch: fix applying on empty files
commit04a87797cb37c4787fdc83040ba75f0ddd60e46d
authorOmar Polo <op@omarpolo.com>
Tue, 23 Apr 2024 07:49:08 +0000 (23 07:49 +0000)
committerOmar Polo <op@omarpolo.com>
Tue, 23 Apr 2024 07:49:08 +0000 (23 07:49 +0000)
tree180c6ef691a09647a352af658a985a0a4178939a
parent939d3016601d8c21e69a605f10838024335f3b1a
got patch: fix applying on empty files

if we've reached EOF without finding a match is fine if and only
if the target file is empty, so add this exception.

reported by naddy, ok stsp
lib/patch.c
regress/cmdline/patch.sh