Xref: utzoo news.software.b:1017 comp.sources.bugs:600 Path: utzoo!yunexus!geac!drew From: drew@geac.UUCP (Drew Sullivan) Newsgroups: news.software.b,comp.sources.bugs Subject: RN Xref bug & fix. | (cd .../rn ; patch) Keywords: rn, patches Message-ID: <1996@geac.UUCP> Date: 21 Dec 87 00:23:48 GMT Article-I.D.: geac.1996 Posted: Sun Dec 20 19:23:48 1987 Reply-To: drew@lethe.UUCP (Drew Sullivan) Organization: Systems Software Lines: 33 On some sites, with the upgrade of news to 2.10.3 or 2.11, rn's Xref facility broke. The culperate appears to be a change in the Xref format. I don't remember what the old Xref format was, but the new format doesn't have any commas. Rn assumed that the Xref must have a comma and if not, it wasn't an Xref line. Note this only applies if rn is compiled with DBM defined. There may be similar problems in the non-DBM version but I didn't look at that code closely enough to tell other than it assumes that it has tabs, which the new Xref line doesn't (no patch for that provided [sorry]). -- Drew Sullivan *** rn/bits.c.orig Tue Mar 24 16:44:00 1987 --- rn/bits.c Sat Dec 19 19:11:46 1987 *************** *** 326,331 #ifdef DBM rver_buf = fetchlines(artnum,NGS_LINE); /* get Newsgroups */ ! if (!index(rver_buf,',')) /* if no comma, no Xref! */ ! return 0; if (hist_file == Nullfp) { /* Init. file accesses */ --- 326,333 ----- #ifdef DBM rver_buf = fetchlines(artnum,NGS_LINE); /* get Newsgroups */ ! #if OLD_STYLE_XREF ! if (!index(rver_buf,',')) /* if no comma, no Xref! */ ! return 0; /* and not true in B-News 2.11 */ ! #endif /* OLD_STYLE_XREF */ /* -- drew@lethe.uucp */ if (hist_file == Nullfp) { /* Init. file accesses */ -- -- Drew Sullivan