14 lines
601 B
Diff
14 lines
601 B
Diff
|
diff -up patch-2.7.6/src/pch.c.than patch-2.7.6/src/pch.c
|
||
|
--- patch-2.7.6/src/pch.c.than 2018-03-13 11:12:44.726307967 +0100
|
||
|
+++ patch-2.7.6/src/pch.c 2018-03-13 11:13:34.203449789 +0100
|
||
|
@@ -976,7 +976,8 @@ intuit_diff_type (bool need_header, mode
|
||
|
if ((pch_rename () || pch_copy ())
|
||
|
&& ! inname
|
||
|
&& ! ((i == OLD || i == NEW) &&
|
||
|
- p_name[! reverse] &&
|
||
|
+ p_name[reverse] && p_name[! reverse] &&
|
||
|
+ name_is_valid (p_name[reverse]) &&
|
||
|
name_is_valid (p_name[! reverse])))
|
||
|
{
|
||
|
say ("Cannot %s file without two valid file names\n", pch_rename () ? "rename" : "copy");
|