Path: utzoo!utgpu!attcan!uunet!wugate!wupost!kuhub.cc.ukans.edu!anu-news!list From: munnari!csc.anu.oz.au!gih900@UUNET.UU.NET (Geoff Huston) Newsgroups: news.software.anu-news Subject: RE: Multiple Newsgroup Bug (No fix) Message-ID: <8908090738.AA12988@uunet.uu.net> Date: 9 Aug 89 19:01:19 GMT Sender: ANU-NEWS DiscussionReply-To: Geoff Huston Lines: 67 >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