Bug in patch 2.0 (patchlevel 12)

Jonathan Knight jonathan at cs.keele.ac.uk
Tue May 30 08:08:54 AEST 1989


I tried to apply patch 8 to the elm system and found that patch
bombed out with an asserion error.  So I invoked patch like
this:

patch -p -N -x511 < patch8 

And here's what the end of the output looked like:

---------------------------------------------
 29     
 30             if (! retransmit && copy_msg != FORM)
 31               if (reply != NULL)
 32                 (void) fclose(reply);       /* on replies, it won't be open! */
Hunk #5 succeeded at 172.
fillsrc 66, filldst 8, rb 8, e+1 67
Assertion failed: file pch.c, line 719
% 
---------------------------------------------

Here's what the patch file (patch8) looks like around the hunk that
caused the problem:

---------------------------------------------
-
        if (! retransmit && copy_msg != FORM)
          if (reply != NULL)
            (void) fclose(reply);       /* on replies, it won't be open! */
--- 172,177 ----
***************
*** 322,328 ****
--- 309,366 ----

        }
        else {
+
          copy_message_across(reply, real_reply, FALSE);
+
+           /* Append signature */
+

****** THERE ARE >30 LINES STARTING + HERE ******

+               strcpy(filename2, sig);
+             (void) append(real_reply,+             }
+           }
 
          fclose(real_reply);
  

Index: src/mkhdrs.c
Prereq: 2.7
*** ../elm2.2/src/mkhdrs.c      Thu Mar 30 10:36:33 1989
--- src/mkhdrs.c  
---------------------------------------------

Any help would be appreciated...


-- 
  ______    JANET :jonathan at uk.ac.keele.cs     Jonathan Knight,
    /       BITNET:jonathan%cs.kl.ac.uk at ukacrl Department of Computer Science
   / _   __ other :jonathan at cs.keele.ac.uk     University of Keele, Keele,
(_/ (_) / / UUCP  :...!ukc!kl-cs!jonathan      Staffordshire.  ST5 5BG.  U.K.



More information about the Comp.sources.bugs mailing list