summaryrefslogtreecommitdiff
path: root/src/patch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/patch.c')
-rw-r--r--src/patch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/patch.c b/src/patch.c
index 7ca7564..828943b 100644
--- a/src/patch.c
+++ b/src/patch.c
@@ -513,12 +513,13 @@ main (int argc, char **argv)
{
if (! outstate.zero_output
&& pch_says_nonexistent (! reverse) == 2
+ && (remove_empty_files || ! posixly_correct)
&& ! (merge && somefailed))
{
mismatch = true;
somefailed = true;
if (verbosity != SILENT)
- say ("File %s is not empty after patch, as expected\n",
+ say ("File %s is not empty after patch; not deleting\n",
quotearg (outname));
}