🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #5814

Re: UNOFF4 + sharedpatch breaks on SunOS?!

#5814
From: Andrew A. Vasilyev
Date: Wed, 20 Mar 1996 00:00
43 lines
1845 bytes
peter@sirius.com wrote:
> I upgraded to Unoff4 and applied the nnrpd sharedpatch (sharedmem size set  
> to 900k, num of groups to 20k). After initial happiness about the more  
> efficient use of memory (around 500k per reader as opposed to 1MB+),  
> reports of "missing news-groups" poured in.

  There is at least one big bug in this patch (I've wrote to
  barr@math.psu.edu about it with no response :(),
  someone forgot about possible existence of the group alias
  as the 3-rd field of active file, see this "second-level" patch:

*** group.c	Sat Mar  9 19:19:19 1996
--- group.c.new	Sat Mar  9 19:19:58 1996
***************
*** 277,285 ****
  
  	gp->Flag = *p;
  	gp->Alias = gp->Flag == NF_FLAG_ALIAS ? p + 1 : NULL;
! 	p++; p++;
      }

      GRPhash();
      GRPtimehash = time((time_t *)&tt);
  }
--- 278,286 ----
  
  	gp->Flag = *p;
  	gp->Alias = gp->Flag == NF_FLAG_ALIAS ? p + 1 : NULL;
! 	/* Skip the group alias if any */
! 	while (*p++ != '\0'); /* !!!! NOT p++; p++; */
      }

      GRPhash();
      GRPtimehash = time((time_t *)&tt);
  }
***************
_______
	ANDY

P.S. Please examine ftp.demos.su:/pub/relcom/usenet/transport/inn/inn1.4-unoff4.patch
     for another 6 small patches to it, not all by me :))

Technical Details
Message-ID: <4iodu0$t87@news.demos.su>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <4ilodo$8fi@sun.sirius.com>

Show Full Headers
Complete Article Headers
Message-ID: <4iodu0$t87@news.demos.su>
Subject: Re: UNOFF4 + sharedpatch breaks on SunOS?!
Date: Wed, 20 Mar 1996 00:00:00 +0000
From: andy@sf.demos.su (Andrew A. Vasilyev)
References: <4ilodo$8fi@sun.sirius.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 143318104
Distribution: inet
Organization: Demos Online Service
Newsgroups: news.software.nntp