Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!think!rutgers!cbmvax!bpa!burdvax!sdcrdcf!lwall From: lwall@sdcrdcf.UUCP (Larry Wall) Newsgroups: net.sources.bugs Subject: patch 2.0 patch #2 Message-ID: <3386@sdcrdcf.UUCP> Date: Wed, 29-Oct-86 19:33:16 EST Article-I.D.: sdcrdcf.3386 Posted: Wed Oct 29 19:33:16 1986 Date-Received: Fri, 31-Oct-86 02:00:26 EST Organization: System Development Corporation, Santa Monica Lines: 104 Summary: This is an official patch for patch 2.0. Please apply it. System: patch version 2.0 Patch #: 2 Priority: LOW Subject: patch can report a new-style context diff when it is really an old one From: lwall@sdcrdcf (Larry Wall) Complaint: How come my beta testers didn't find this one? :-) Description: The patch program can falsely report "This is really a new-style context diff without the telltale asterisks." This does not keep patch from working, but it can prevent the most sane error recovery, and it is rather distracting. The problem was that a patch to a place at the beginning of the input file spoofs patch into thinking there are fewer lines of context, which throws off the calculation which produces the message. Repeat-By: Installing patch #1. (I'm soooo embarassed!) Fix: From rn, say "| patch -d DIR", where DIR is your patch source directory. Outside of rn, say "cd DIR; patch #define PATCHLEVEL 2 Index: pch.c Prereq: 2.0 *** pch.c.old Wed Oct 29 15:53:26 1986 *** pch.c Wed Oct 29 15:53:35 1986 *************** *** 1,4 ! /* $Header: pch.c,v 2.0 86/09/17 15:39:37 lwall Exp $ * * $Log: pch.c,v $ * Revision 2.0 86/09/17 15:39:37 lwall --- 1,4 ----- ! /* $Header: pch.c,v 2.0.1.1 86/10/29 15:52:08 lwall Exp $ * * $Log: pch.c,v $ * Revision 2.0.1.1 86/10/29 15:52:08 lwall *************** *** 1,6 /* $Header: pch.c,v 2.0 86/09/17 15:39:37 lwall Exp $ * * $Log: pch.c,v $ * Revision 2.0 86/09/17 15:39:37 lwall * Baseline for netwide release. * --- 1,9 ----- /* $Header: pch.c,v 2.0.1.1 86/10/29 15:52:08 lwall Exp $ * * $Log: pch.c,v $ + * Revision 2.0.1.1 86/10/29 15:52:08 lwall + * Could falsely report new-style context diff. + * * Revision 2.0 86/09/17 15:39:37 lwall * Baseline for netwide release. * *************** *** 608,614 } if (diff_type == CONTEXT_DIFF && ! (fillcnt || ptrn_copiable > 2*p_context) ) { if (verbose) say1("\ (Fascinating--this is really a new-style context diff but without the telltale\n\ --- 611,617 ----- } if (diff_type == CONTEXT_DIFF && ! (fillcnt || (p_first > 1 && ptrn_copiable > 2*p_context)) ) { if (verbose) say1("\ (Fascinating--this is really a new-style context diff but without the telltale\n\