From f8e5d57fe36843ab92607a3a473c4d52c52b9f07 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Mon, 28 Nov 2005 01:30:16 +0000 Subject: - Oops, the /dev/null "fix" broke create-delete.test. Back out this change and fix only the specific -p0 case. --- scripts/patchfns.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/patchfns.in b/scripts/patchfns.in index 714c7a6..b74cce5 100644 --- a/scripts/patchfns.in +++ b/scripts/patchfns.in @@ -539,6 +539,7 @@ diff_file() if ! [ -s "$old_file" ] then old_file=/dev/null + old_hdr=/dev/null [ -n "$QUILT_NO_DIFF_TIMESTAMPS" ] \ || old_date=$'\t'"1970-01-01 00:00:00.000000000 +0000" else @@ -548,7 +549,10 @@ diff_file() fi if ! [ -s "$new_file" ] then + [ $opt_strip_level -eq 0 ] \ + && old_hdr=$new_hdr new_file=/dev/null + new_hdr=/dev/null [ -n "$QUILT_NO_DIFF_TIMESTAMPS" ] \ || new_date=$'\t'"1970-01-01 00:00:00.000000000 +0000" else -- cgit