HomeFreeBSD

patch(1): fix the file removal test, strengthen it a bit

Description

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.

Details

Provenance
kevansAuthored on
Parents
rS351865: ficl: add xemit word
Branches
Unknown
Tags
Unknown