home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume7 / patch2 / patch5 < prev    next >
Internet Message Format  |  1986-11-30  |  4KB

  1. From cbosgd!sdcrdcf!daemon Sat Nov 29 21:36:26 1986
  2. Received: by mirror.TMC.COM (4.12/UUCP-Project/rel-1.0/08-20-86)
  3.     id AA12731; Sat, 29 Nov 86 21:36:21 est
  4. Received: by cbosgd.ATT.COM (smail2.1)
  5.     id AA20992; 29 Nov 86 21:09:01 EST (Sat)
  6. Received: by sdc.uucp (4.12/sdcrdcf)
  7.     id AA25526; Sat, 29 Nov 86 17:51:00 pst
  8. Date: Sat, 29 Nov 86 17:51:00 pst
  9. From: sdcrdcf!daemon (The Devil Himself)
  10. Message-Id: <8611300151.AA25526@sdc.uucp>
  11. Subject: patch version 2.0 patch #5
  12. Apparently-To: cbosgd!mirror!rs
  13. Status: R
  14.  
  15. [The latest patch for patch version 2.0 is #5.]
  16.  
  17. mailpatch speaking for lwall
  18.  
  19. System: patch version 2.0
  20. Patch #: 5
  21. Priority: HIGH
  22. Subject: Patch misplaces patches when fuzz factor > 0
  23. Authorial-Remark: OOPS.
  24. From: erix!per (Per Hedeland)
  25.  
  26. Description:
  27.     If a fuzz factor > 0 is used when applying a patch hunk, it will
  28.     be applied (fuzz factor) lines too far into the file.
  29.  
  30. Fix:    Since patch_match starts checking "fuzz" lines into the patch,
  31.     it must (of course) add "fuzz" to the starting point in the
  32.     file as well.
  33.  
  34.     From rn, say "| patch -d DIR", where DIR is your patch source
  35.     directory.  Outside of rn, say "cd DIR; patch <thisarticle".
  36.     If you don't have the patch program, apply the following by hand,
  37.     or get patch.
  38.  
  39.     If patch uses a fuzz factor to apply this, you're screwed.
  40.  
  41.     If patch indicates that patchlevel is the wrong version, you may need
  42.     to apply one or more previous patches, or the patch may already
  43.     have been applied.  See the patchlevel.h file to find out what has or
  44.     has not been applied.  In any event, don't continue with the patch.
  45.  
  46.     If you are missing previous patches they can be obtained from me:
  47.  
  48.     Larry Wall
  49.     {allegra,burdvax,cbosgd,hplabs,ihnp4,sdcsvax}!sdcrdcf!lwall
  50.  
  51.     If you send a mail message of the following form it will greatly speed
  52.     processing:
  53.  
  54.     Subject: Command
  55.     @SH mailpatch PATH patch 2.0 LIST
  56.            ^ note the c
  57.  
  58.     where PATH is a return path FROM ME TO YOU in bang notation, and LIST
  59.     is the number of one or more patches you need, separated by spaces,
  60.     commas, and/or hyphens.  Saying 35- says everything from 35 to the end.
  61.     You can also get them by anonymous FTP from sdc-camarillo.arpa.
  62.  
  63. Index: patchlevel.h
  64. Prereq: 4
  65. 1c1
  66. < #define PATCHLEVEL 4
  67. ---
  68. > #define PATCHLEVEL 5
  69.  
  70. Index: patch.c
  71. Prereq: 2.0.1.1
  72. *** patch.c.old    Fri Nov 21 09:43:33 1986
  73. *** patch.c    Fri Nov 21 09:43:42 1986
  74. ***************
  75. *** 1,5
  76.   char rcsid[] =
  77. !     "$Header: patch.c,v 2.0.1.1 86/10/29 13:10:22 lwall Exp $";
  78.   
  79.   /* patch - a program to apply diffs to original files
  80.    *
  81.  
  82. --- 1,5 -----
  83.   char rcsid[] =
  84. !     "$Header: patch.c,v 2.0.1.2 86/11/21 09:39:15 lwall Exp $";
  85.   
  86.   /* patch - a program to apply diffs to original files
  87.    *
  88. ***************
  89. *** 9,14
  90.    * money off of it, or pretend that you wrote it.
  91.    *
  92.    * $Log:    patch.c,v $
  93.    * Revision 2.0.1.1  86/10/29  13:10:22  lwall
  94.    * Backwards search could terminate prematurely.
  95.    * 
  96.  
  97. --- 9,17 -----
  98.    * money off of it, or pretend that you wrote it.
  99.    *
  100.    * $Log:    patch.c,v $
  101. +  * Revision 2.0.1.2  86/11/21  09:39:15  lwall
  102. +  * Fuzz factor caused offset of installed lines.
  103. +  * 
  104.    * Revision 2.0.1.1  86/10/29  13:10:22  lwall
  105.    * Backwards search could terminate prematurely.
  106.    * 
  107. ***************
  108. *** 785,791
  109.       Reg2 LINENUM iline;
  110.       Reg3 LINENUM pat_lines = pch_ptrn_lines() - fuzz;
  111.   
  112. !     for (iline=base+offset; pline <= pat_lines; pline++,iline++) {
  113.       if (canonicalize) {
  114.           if (!similar(ifetch(iline, (offset >= 0)),
  115.                pfetch(pline),
  116.  
  117. --- 788,794 -----
  118.       Reg2 LINENUM iline;
  119.       Reg3 LINENUM pat_lines = pch_ptrn_lines() - fuzz;
  120.   
  121. !     for (iline=base+offset+fuzz; pline <= pat_lines; pline++,iline++) {
  122.       if (canonicalize) {
  123.           if (!similar(ifetch(iline, (offset >= 0)),
  124.                pfetch(pline),
  125.  
  126.