]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
patch(1): fix the file removal test, strengthen it a bit
authorkevans <kevans@FreeBSD.org>
Thu, 5 Sep 2019 15:35:57 +0000 (15:35 +0000)
committerkevans <kevans@FreeBSD.org>
Thu, 5 Sep 2019 15:35:57 +0000 (15:35 +0000)
commita218e1933ffa3f338833c007a08b1cf668aba009
tree5f2ac525d99696e7e345d616b4205e6d093b62b6
parent91c0258237573ff8558edf4de1a7cb1aa3d0934f
patch(1): fix the file removal test, strengthen it a bit

To remain compatible with GNU patch, we should ensure that once we're
removing empty files after a reversed /dev/null patch we don't remove files
that have been modified. GNU patch leaves these intact and just reverses the
hunk that created the file, effectively implying --remove-empty-files for
reversed /dev/null patches.
usr.bin/patch/tests/unified_patch_test.sh