wswietse@svbs01.bs.win.tue.nl (Wietse Venema) (09/06/90)
When setting up a number of news feeds through nntp, I stumbled across a minor problem with the way that B news 2.11.19 expire(8) creates a new-style history data base (C news style) from scratch. nntpd, upon receipt of a NEWNEWS command, performs a binary search on the history file in order to identify all messages that arrived after a specified point in time. This requires that the history file be sorted with respect to arrival time of articles. It seems that the sort(1) command used by expire(8) when rebuilding the history file from scratch (-r option) still assumes old history file format, causing the history file to be sorted with respect to the wrong fields. The following unoffical fix takes care of the problem. *** expire.c- Thu Dec 21 12:18:05 1989 --- expire.c Thu Aug 30 16:28:09 1990 *************** *** 360,366 sizeof (struct multhist)); mh_size = SPACE_INCREMENT; ! (void) sprintf(afline, "exec sort -t\t +1.6 -2 +1 >%s", #ifdef DBM NARTFILE); #else /* !DBM */ --- 360,366 ----- sizeof (struct multhist)); mh_size = SPACE_INCREMENT; ! (void) sprintf(afline, "exec sort -t'\t' +1 >%s", #ifdef DBM NARTFILE); #else /* !DBM */