home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume7 / patch2 / patch3 < prev    next >
Text File  |  1986-11-30  |  3KB  |  106 lines

  1. /* Written  9:06 pm  Nov  3, 1986 by lwall@sdcrdcf.UUCP in mirror:net.sources.bu */
  2. /* ---------- "patch 2.0 patch #3" ---------- */
  3. System: patch version 2.0
  4. Patch #: 3
  5. Priority: HIGH
  6. Subject: new-style diff with deletion can trigger spurious assertion failure
  7. From: cope.ucsf.edu!goldman (Eric Goldman)
  8.  
  9. Description:
  10.     A 4.3-style context diff that does deletions can cause patch to die
  11.     of an assertion failure.  Interestingly enough, if the assertion
  12.     weren't there patch would work fine.
  13.  
  14. Repeat-By:
  15.     Easy.  Try applying a new-style context diff with deletions.
  16.  
  17. Fix:    From rn, say "| patch -d DIR", where DIR is your patch source
  18.     directory.  Outside of rn, say "cd DIR; patch <thisarticle".
  19.     If you don't have the patch program, apply the following by hand,
  20.     or get patch.  [Yah, I know that's funny because you already have
  21.     patch, but it is text produced by a generic patch generator, and
  22.     I haven't gotten around to special casing patch.]
  23.  
  24.     If patch indicates that patchlevel is the wrong version, you may need
  25.     to apply one or more previous patches, or the patch may already
  26.     have been applied.  See the patchlevel.h file to find out what has or
  27.     has not been applied.  In any event, don't continue with the patch.
  28.  
  29.     If you are missing previous patches they can be obtained from me:
  30.  
  31.     Larry Wall
  32.     {allegra,burdvax,cbosgd,hplabs,ihnp4,sdcsvax}!sdcrdcf!lwall
  33.  
  34.     If you send a mail message of the following form it will greatly speed
  35.     processing:
  36.  
  37.     Subject: Command
  38.     @SH mailpatch PATH patch 2.0 NUM ...
  39.  
  40.     where PATH is a return path FROM ME TO YOU in bang notation, and NUM
  41.     is the number of one or more patches you need, separated by spaces.
  42.     You can also get them by anonymous FTP from sdc-camarillo.arpa.
  43.  
  44. Index: patchlevel.h
  45. Prereq: 2
  46. 1c1
  47. < #define PATCHLEVEL 2
  48. ---
  49. > #define PATCHLEVEL 3
  50.  
  51. Index: pch.c
  52. Prereq: 2.0.1.1
  53. *** pch.c.old    Mon Nov  3 17:53:21 1986
  54. *** pch.c    Mon Nov  3 17:53:54 1986
  55. ***************
  56. *** 1,4
  57. ! /* $Header: pch.c,v 2.0.1.1 86/10/29 15:52:08 lwall Exp $
  58.    *
  59.    * $Log:    pch.c,v $
  60.    * Revision 2.0.1.1  86/10/29  15:52:08  lwall
  61.  
  62. --- 1,4 -----
  63. ! /* $Header: pch.c,v 2.0.1.2 86/11/03 17:49:52 lwall Exp $
  64.    *
  65.    * $Log:    pch.c,v $
  66.    * Revision 2.0.1.2  86/11/03  17:49:52  lwall
  67. ***************
  68. *** 1,6
  69.   /* $Header: pch.c,v 2.0.1.1 86/10/29 15:52:08 lwall Exp $
  70.    *
  71.    * $Log:    pch.c,v $
  72.    * Revision 2.0.1.1  86/10/29  15:52:08  lwall
  73.    * Could falsely report new-style context diff.
  74.    * 
  75.  
  76. --- 1,9 -----
  77.   /* $Header: pch.c,v 2.0.1.2 86/11/03 17:49:52 lwall Exp $
  78.    *
  79.    * $Log:    pch.c,v $
  80. +  * Revision 2.0.1.2  86/11/03  17:49:52  lwall
  81. +  * New-style delete triggers spurious assertion error.
  82. +  * 
  83.    * Revision 2.0.1.1  86/10/29  15:52:08  lwall
  84.    * Could falsely report new-style context diff.
  85.    * 
  86. ***************
  87. *** 629,635
  88.           p_len[filldst] = p_len[fillsrc];
  89.           fillsrc++; filldst++;
  90.           }
  91. !         while (fillsrc <= p_end && p_char[fillsrc] != ' ')
  92.           fillsrc++;
  93.   #ifdef DEBUGGING
  94.           if (debug & 64)
  95.  
  96. --- 632,639 -----
  97.           p_len[filldst] = p_len[fillsrc];
  98.           fillsrc++; filldst++;
  99.           }
  100. !         while (fillsrc <= p_end && fillsrc != repl_beginning &&
  101. !           p_char[fillsrc] != ' ')
  102.           fillsrc++;
  103.   #ifdef DEBUGGING
  104.           if (debug & 64)
  105. /* End of text from mirror:net.sources.bu */
  106.