[comp.sources.bugs] RN Xref bug & fix. |

drew@geac.UUCP (Drew Sullivan) (12/21/87)

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 <drew@lethe.uucp>

*** 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 <drew@lethe.uucp>