From:	MERC::"uunet!VM1.NODAK.EDU!OWNER-ANU-NEWS"  2-MAR-1993 19:54:01.16
To:	Multiple recipients of list ANU-NEWS <ANU-NEWS@VM1.NoDak.EDU>
CC:	
Subj:	Bug Report: ANU News 6.1 beta 6 NNTP_SERVER doesn't honor USECACHE

Folks,

This may have been posted previously (it rings a faint bell), but in
case it hasn't.

ANU News 6.1 Beta 6, NNTP_SERVER.C does not honor the setting of the
USECACHE symbol in NEWSSITE.H. This causes an eventual access violation
by the NNTP_SERVER code, as well as other ugliness such as spurious
log files. A patch for this is below.

Thanks to everyone who has contributed to ANU News 6.1.

********************************************************************************
Saul Tannenbaum                         |
Manager, Scientific Computing           |Internet: SAUL@HNRC.TUFTS.EDU
USDA Human Nutrition Research Center on |
    Aging at Tufts University           |
*********************** Standard Disclaimers Apply *****************************


*** nntp_server.c;1
--- nntp_server.c;3
**************
*** 2609,2615
    for (i = 0; i < (IDLEN + 4); ++i) l_id[i] = '\0';
    strncpy(l_id,id,IDLEN);
    strcpy(cxt[stm].cache_id,l_id);  /* remember cache id for later */
!   if (cache_check(l_id,0) || itm_check(l_id) || hist_check(l_id)) return(1);
    return(0);
  }

--- 2609,2617 -----
    for (i = 0; i < (IDLEN + 4); ++i) l_id[i] = '\0';
    strncpy(l_id,id,IDLEN);
    strcpy(cxt[stm].cache_id,l_id);  /* remember cache id for later */
!   if (
!     (USECACHE ? cache_check(l_id,0) : 0) ||
!           itm_check(l_id) || hist_check(l_id)) return(1);
    return(0);
  }

**************
*** 2707,2713
      if (close_file(fpl,artbuf,FEED,msgbuf,stm)) {
        mdx = 235;
        cxt[stm].accepted++;
!       cache_check(cxt[stm].cache_id,1);
        }
      else {
  /*
--- 2709,2715 -----
      if (close_file(fpl,artbuf,FEED,msgbuf,stm)) {
        mdx = 235;
        cxt[stm].accepted++;
!       if (USECACHE) cache_check(cxt[stm].cache_id,1);
        }
      else {
  /*
