Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site sdcrdcf.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!sdcsvax!sdcrdcf!jonab From: jonab@sdcrdcf.UUCP (Jonathan Biggar) Newsgroups: net.sources.bugs Subject: Rn bug patch #5 (REPOSTED) Message-ID: <1469@sdcrdcf.UUCP> Date: Fri, 16-Nov-84 18:51:29 EST Article-I.D.: sdcrdcf.1469 Posted: Fri Nov 16 18:51:29 1984 Date-Received: Sun, 18-Nov-84 05:11:55 EST Reply-To: jonab@sdcrdcf.UUCP (Jonathan Biggar) Distribution: net Organization: System Development Corp. R+D, Santa Monica Lines: 343 System: rn version 4.1 Bug #: 5 Priority: HIGH Subject: Xref patch for 2.10.1 inews is wrong. Index: inews.c.1.pat Description: An older version of the inews patch for news 2.10.1 was inadvertently sent out with the kit. This causes inews to produce Xref lines that are useless to rn. Repeat-By: Examine an article produced by a version 2.10.1 inews that has the inews.c.1.pat applied. If the article has an Xref line due to posting to multiple newsgroups, it will be of the form: Xref: sysname art# art# art# ... This is an old form of Xref line, where the article numbers correspond to the newsgroups on the Newsgroups: line. This is now incorrect, and rn (version 4.1, anyway) will ignore such a line, and show the given article more than once. The problem with the old format was that it did not allow for possible newsgroup aliasing. Fix: The correct format of an Xref line is now: Xref: sysname newsgroup:art# newsgroup:art# ... There are 2 possible solutions: 1) Upgrade to news 2.10.2 and install inews.c.2.pat from the kit. 2) INSTEAD of applying the inews.c.1.pat that came with the rn kit, apply the following. From rn, say "| patch -d DIR", where DIR is your news source directory. Outside of rn, say "cd DIR; patch ', tfp); + */ + fputs(bfr, tfp); + } + fclose(tfp); + fclose(infp); + #endif LINKART || DOXREFS + #ifdef NOFORWARD if (*nbuf) #endif *************** *** 861,863 mclose(fd); } } --- 922,946 ----- mclose(fd); } } + + #ifdef LINKART + mylink(tmpart,linkfrom) + char *tmpart, *linkfrom; + { + struct stat statbuf; + + if (stat(linkfrom,&statbuf)==0) + return -1; + if (!*tmpart) + strcpy(tmpart,linkfrom); + else { + FILE *linkfp = fopen(linkfrom,"w"); + + if (!linkfp) + return -1; + fprintf(linkfp,"%s\n",tmpart); + fclose(linkfp); + } + return 0; + } + #endif LINKART