From:	ADVAX::"mcnc!VM1.NoDak.EDU!G.Huston%AARNET.EDU.AU"  2-MAY-1991 03:24:28.57
To:	Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
CC:	
Subj:	Re: duplicate articles

Received: by ADVAX.DECnet (utk-mail11 v1.5) ; Thu, 2 May 91 03:24:07 EDT
Received:  from mcnc by ge-dab.GE.COM (5.61/GE-DAB 1.15) with UUCP
	id AA08906 for ; Thu, 2 May 91 03:00:52 -0400
Received: from VM1.NoDak.EDU by mcnc.mcnc.org (5.59/MCNC/3-21-91)
	id AA21944; Wed, 1 May 91 20:05:53 -0400
	for ARISIA.DNET.ge.com!EVERHART
Message-Id: <9105020005.AA21944@mcnc.mcnc.org>
Received: from NDSUVM1.BITNET by VM1.NoDak.EDU (IBM VM SMTP R1.2.1MX) with BSMTP id 2928; Wed, 01 May 91 19:05:41 CDT
Received: from NDSUVM1.BITNET by NDSUVM1.BITNET (Mailer R2.07) with BSMTP id
 9894; Wed, 01 May 91 19:05:40 CDT
Date:         Thu, 2 May 91 10:04:17 +1000
Reply-To: mcnc!VM1.NoDak.EDU!G.Huston%AARNET.EDU.AU
Sender: ANU-NEWS Discussion <ANU-NEWS@VM1.NoDak.EDU>
From: mcnc!VM1.NoDak.EDU!G.Huston%AARNET.EDU.AU
Subject:      Re: duplicate articles
X-To:         Eric Dittman <dittman@skbat.csc.ti.com>
X-Cc:         anu-news@vm1.nodak.edu
To: Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
 
>
>>I think I have a handle on this problem - a fix will be out in a week or
so
>
>In the meantime, Geoff, I've modified REBUILD_ITEM_FILE to take care of
>the problem.  The diffs are at the end of the message.  Also in the diffs,
>notice that I've manually folded the line with the call to
LIB$RENAME_FILE.
>I added the rename feature do the duplicates could be checked by hand and
>then easily deleted ($ del NEWS_DEVICE:[*...]*.DUP;).  Notice I've messed
>slightly with the fnam descriptor, since LIB$RENAME_FILE won't take a old
>filespec string that is longer than 255 characters.  I'm currently running
>this fix to rebuild my entire database, so I'm not 100% sure this is
totally
>right, but I'll let you know in a couple of hours (this is running on a
>MicroVAX II, so there's not a lot of speed).
 
 
OK - the patch to this specific problem is a new version of util_idcpy (in
module newsrtl.c) - the previous version left rubbish after the trailing
null in the id string - this procedure ensures that the string is padded
with null chars.
 
/*
 *	util_idcpy
 *
 *	block copy (including padding nulls)
 */
 
void util_idcpy(result,input)
	char *result,
	*input;
{
	int i =	0, j =	0;
 
	while (i < IDLEN) result[i++] = input[j] ? input [j++] : input[j];
	result[--i] = '\0';
}
 
--
Geoff Huston                                        G.Huston@aarnet.edu.au
Network Technical Manager                               ph: +61 6 249 3385
Australian Academic and Research Network               fax: +61 6 247 3425
