[news.software.anu-news] Multiple Newsgroup Bug

REGGERS@uwovax.uwo.ca (Reg Quinton) (08/01/89)

We're running ANU/NEWS V5.8 (plus  all patches as distributed  to date) and
have encountered  a  problem with articles  posted  to multiple newsgroups.
Although I've  not   chased the  problem  down  I  thought I'd  advise  the
discussion group:

     Articles  posted to  multiple groups will  show as  items in
     each   group    but    the     message    exists       as  a
     [news.group.name]X.itm  file  in  only  ONE  of  the groups.
     Attempts to access the article from other groups will fail.

Looking for help.
-- 
Telephone:	(519) 661 2151 x6026 (a real person and not a machine)
Canada:		reggers@uwo.ca (used to be UWO.CDN)
BITNET:		reggers@uwovax.BITNET (for the ethnocentric)
UUCP:		reggers@julian.UUCP (...!watmath!julian..)

gih900@UUNET.UU.NET (Geoff Huston) (08/10/89)

>We're running ANU/NEWS V5.8 (plus  all patches as distributed  to date) and
>have encountered  a  problem with articles  posted  to multiple newsgroups.
>Although I've  not   chased the  problem  down  I  thought I'd  advise  the
>discussion group:
>
>     Articles  posted to  multiple groups will  show as  items in
>     each   group    but    the     message    exists       as  a
>     [news.group.name]X.itm  file  in  only  ONE  of  the groups.
>     Attempts to access the article from other groups will fail.
>
>Looking for help.
     
NEWSUTILITY.C
     
I forgot to enable SYSPRV at the correct point.....
     
     
/*
 *  do_new_item
 *
 *  Create new item in newsgroup
 */
     
static
char nst[] = "";
     
unsigned int
do_new_item(g,id,subj,fnam,new_flag,skip_history,linecount)
  unsigned int *g;
  char *id, *subj, *fnam;
  int new_flag, skip_history, linecount;
{
     
  ...
     
     
  for (i = 0 ; i < g_count; ++i) {
    forward_posting = 1;
    if (!*itm_fname) {
       ...
     
      }
    else {
      char fline[256];
     
      sprintf(fline,Itm_template,util_dir(ga[cre_grp[i]]->grp_name),cre_itm[i]);
     
/* alteration starts here */
      sysprv();
      file_copy(itm_fname,fline);
      if (ga[cre_grp[i]]->grp_flags & NEWS_M_RESTRICT_SET) chmod(fline,0700);
      nosysprv();
/* and finished here */
     
      status = 0;
      strcpy(no_new_item,"Newsitem added");
      no_more_news = 0;
      }
    }
  if (ifile) rms_close(ifile);
  return(status);
}
     
     
     
Geoff Huston
gih900@csc.anu.oz.au