home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume1 / rn / patch40 < prev    next >
Encoding:
Internet Message Format  |  1987-03-06  |  4.0 KB

  1. Path: necntc!adelie!axiom!linus!decvax!tektronix!cae780!hplabs!sdcrdcf!lwall
  2. From: lwall@sdcrdcf.UUCP (Larry Wall)
  3. Newsgroups: comp.sources.bugs,news.software.b
  4. Subject: rn 4.3 patch #40
  5. Message-ID: <3957@sdcrdcf.UUCP>
  6. Date: 27 Jan 87 01:16:15 GMT
  7. Reply-To: lwall@sdcrdcf.UUCP (Larry Wall)
  8. Distribution: world
  9. Organization: System Development Corporation R&D, Santa Monica
  10. Lines: 157
  11. Xref: necntc news.software.b:215
  12.  
  13. System: rn version 4.3
  14. Patch #: 40
  15. Priority: HIGH
  16. Subject: moderated groups work differently now
  17. From: lwall@sdcrdcf (Larry Wall)
  18.  
  19. Description:
  20.     As part of the newsgroup renaming scheme, moderated groups will no
  21.     longer be of the form mod.*.  In order that users know when they
  22.     are in a moderated group, rn should say whether a given group
  23.     is moderated.
  24.  
  25.     Additionally, the code in Pnews to handle moderated groups is now
  26.     obsolete, since inews handles it.
  27.     
  28. Fix:    To fix Pnews to be compatible with 2.11 inews, just remove your
  29.     /usr/lib/news/moderators file, or equivalent, if you have one.
  30.     If you haven't installed 2.11 yet, leave your moderators file there
  31.     until you install 2.11, which will be soon. (!!!!)
  32.  
  33.     To fix rn, install the following patches and recompile.
  34.  
  35.     From rn, say "| patch -d DIR", where DIR is your rn source directory.
  36.     Outside of rn, say "cd DIR; patch <thisarticle".  If you don't have
  37.     the patch program, apply the following by hand, or get patch.
  38.  
  39.     If patch indicates that patchlevel is the wrong version, you may need
  40.     to apply one or more previous patches, or the patch may already
  41.     have been applied.  See the patchlevel file to find out what has or
  42.     has not been applied.  In any event, don't continue with the patch.
  43.  
  44.     If you are missing previous patches they can be obtained from me:
  45.  
  46.     Larry Wall
  47.     {allegra,burdvax,cbosgd,hplabs,ihnp4,sdcsvax}!sdcrdcf!lwall
  48.  
  49.     If you send a mail message of the following form it will greatly speed
  50.     processing:
  51.  
  52.     Subject: Command
  53.     @SH mailpatch PATH rn 4.3 LIST
  54.            ^
  55.            notice the c
  56.  
  57.     where PATH is a return path FROM ME TO YOU in bang notation, and LIST
  58.     is a list of one or more patches you need, separated by spaces, commas
  59.     and/or hyphens.  Saying n- will give you everything from n on up.
  60.  
  61. Index: patchlevel
  62. Prereq: 39
  63. 1c1
  64. < Patch #: 39
  65. ---
  66. > Patch #: 40
  67.  
  68. Index: art.c
  69. *** /tmp/,RCSt1026463    Mon Jan 26 16:50:34 1987
  70. --- art.c    Mon Jan 26 16:37:40 1987
  71. ***************
  72. *** 25,30
  73.   #include "common.h"
  74.   #include "rn.h"
  75.   #include "ngstuff.h"
  76.   #include "head.h"
  77.   #include "cheat.h"
  78.   #include "help.h"
  79.  
  80. --- 25,31 -----
  81.   #include "common.h"
  82.   #include "rn.h"
  83.   #include "ngstuff.h"
  84. + #include "ngdata.h"
  85.   #include "head.h"
  86.   #include "cheat.h"
  87.   #include "help.h"
  88. ***************
  89. *** 161,166
  90.   #endif
  91.           if (htype[NGS_LINE].ht_flags & HT_HIDE)
  92.               printf(" in %s", ngname);
  93.           fputs(":\n",stdout) FLUSH;
  94.           }
  95.           start_header(art);
  96.  
  97. --- 162,168 -----
  98.   #endif
  99.           if (htype[NGS_LINE].ht_flags & HT_HIDE)
  100.               printf(" in %s", ngname);
  101. +         fputs(moderated,stdout);
  102.           fputs(":\n",stdout) FLUSH;
  103.           }
  104.           start_header(art);
  105.  
  106. Index: ngdata.c
  107. *** /tmp/,RCSt1026442    Mon Jan 26 16:49:41 1987
  108. --- ngdata.c    Mon Jan 26 16:43:23 1987
  109. ***************
  110. *** 17,22
  111.   #include "intrp.h"
  112.   #include "final.h"
  113.   #include "rcln.h"
  114.   #include "INTERN.h"
  115.   #include "ngdata.h"
  116.   
  117.  
  118. --- 17,23 -----
  119.   #include "intrp.h"
  120.   #include "final.h"
  121.   #include "rcln.h"
  122. + #include "util.h"
  123.   #include "INTERN.h"
  124.   #include "ngdata.h"
  125.   
  126. ***************
  127. *** 89,94
  128.   #else
  129.           abs1st = tmp;
  130.   #endif
  131.       }
  132.   #endif
  133.       return atol(tmpbuf+len+1);
  134.  
  135. --- 90,102 -----
  136.   #else
  137.           abs1st = tmp;
  138.   #endif
  139. +     if (!in_ng) {
  140. +         for (s++; isdigit(*s); s++) ;
  141. +         while (isspace(*s)) s++;
  142. +         moderated = (!*s || *s == 'y'
  143. +         ? nullstr
  144. +         : getval("MODSTRING"," (moderated)") );
  145. +     }
  146.       }
  147.   #endif
  148.       return atol(tmpbuf+len+1);
  149.  
  150. Index: ngdata.h
  151. *** /tmp/,RCSt1026500    Mon Jan 26 16:51:29 1987
  152. --- ngdata.h    Mon Jan 26 16:25:11 1987
  153. ***************
  154. *** 21,26
  155.   # endif
  156.   #endif
  157.   
  158.   
  159.   void    ngdata_init();
  160.   ART_NUM    getngsize();
  161.  
  162. --- 21,27 -----
  163.   # endif
  164.   #endif
  165.   
  166. + EXT char *moderated;
  167.   
  168.   void    ngdata_init();
  169.   ART_NUM    getngsize();
  170.  
  171.  
  172.  
  173.