home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume1 / rn / patch02 < prev    next >
Encoding:
Text File  |  1986-11-30  |  2.9 KB  |  100 lines

  1. Patch #: 2
  2. Priority: LOW
  3. Subject: KILL file can set art < absfirst, causing "(-1 more)" error
  4. >From: lwall@sdcrdcf.UUCP (Larry Wall)
  5.  
  6. Description:
  7.     If a newsgroup with a KILL file is left unread for a long time,
  8.     the last article processed by the KILL file, as recorded by the
  9.     THRU line in the KILL file, can become less than the minimum article
  10.     in the newsgroup due to article expiration.  Unfortunately, there
  11.     was no check to see if this had happened, so it was possible for
  12.     rn to try to junk articles without valid bits in the bitmap.
  13.     This causes rn to think it has junked more articles than it really
  14.     has, causing the count of unread articles to become incorrect.
  15.  
  16. Fix:    From rn, say "| patch -d DIR", where DIR is your rn source directory.
  17.     Outside of rn, say "cd DIR; patch <thisarticle".  If you don't have
  18.     the patch program, apply the following by hand, or get patch.
  19.  
  20.     Warning: this patch is not reversed.  If the patch program says
  21.     it is, then this patch has already been applied, and you should
  22.     not apply it again.
  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 file to find out what has or
  27.     has not been applied.  In any event, don't continue with the patch.
  28.  
  29. Index: patchlevel
  30. Prereq: 1
  31. 1c1
  32. < Patch #: 1
  33. ---
  34. > Patch #: 2
  35.  
  36. Index: kfile.c
  37. Prereq: 4.3
  38. *** kfile.c.old    Fri May 10 14:22:47 1985
  39. --- kfile.c    Fri May 10 14:22:49 1985
  40. ***************
  41. *** 1,4
  42. ! /* $Header: kfile.c,v 4.3 85/05/01 11:41:53 lwall Exp $
  43.    *
  44.    * $Log:    kfile.c,v $
  45.    * Revision 4.3  85/05/01  11:41:53  lwall
  46.  
  47. --- 1,4 -----
  48. ! /* $Header: kfile.c,v 4.3.1.2 85/05/10 14:21:29 lwall Exp $
  49.    *
  50.    * $Log:    kfile.c,v $
  51.    * Revision 4.3.1.2  85/05/10  14:21:29  lwall
  52. ***************
  53. *** 1,6
  54.   /* $Header: kfile.c,v 4.3 85/05/01 11:41:53 lwall Exp $
  55.    *
  56.    * $Log:    kfile.c,v $
  57.    * Revision 4.3  85/05/01  11:41:53  lwall
  58.    * Baseline for release with 4.3bsd.
  59.    * 
  60.  
  61. --- 1,12 -----
  62.   /* $Header: kfile.c,v 4.3.1.2 85/05/10 14:21:29 lwall Exp $
  63.    *
  64.    * $Log:    kfile.c,v $
  65. +  * Revision 4.3.1.2  85/05/10  14:21:29  lwall
  66. +  * Prevented THRU from setting art < absfirst.
  67. +  * 
  68. +  * Revision 4.3.1.1  85/05/10  11:34:33  lwall
  69. +  * Branch for patches.
  70. +  * 
  71.    * Revision 4.3  85/05/01  11:41:53  lwall
  72.    * Baseline for release with 4.3bsd.
  73.    * 
  74. ***************
  75. *** 65,71
  76.       while (fgets(buf,LBUFLEN,kfp) != Nullch) {
  77.       buf[strlen(buf)-1] = '\0';
  78.       if (strnEQ(buf,"THRU",4)) {
  79. !         firstart = atol(buf+4)+1;
  80.           continue;
  81.       }
  82.       if (*buf == 'X') {        /* exit command? */
  83.  
  84. --- 71,83 -----
  85.       while (fgets(buf,LBUFLEN,kfp) != Nullch) {
  86.       buf[strlen(buf)-1] = '\0';
  87.       if (strnEQ(buf,"THRU",4)) {
  88. !         ART_NUM tmpart;
  89. !         tmpart = atol(buf+4)+1;
  90. !         if (tmpart < absfirst)
  91. !         tmpart = absfirst;
  92. !         check_first(tmpart);
  93. !         firstart = tmpart;
  94.           continue;
  95.       }
  96.       if (*buf == 'X') {        /* exit command? */
  97.  
  98.  
  99.