🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #165

Re: problems with nn6.4 beta

#165
From: Steven Grady
Date: Tue, 06 Mar 1990 22:35
27 lines
1539 bytes
ccastjb@prism.gatech.EDU (Joubert Berger) writes:

>I ran across a problem and would like to know if others also have seen
>this problem with the new beta version of nn, nn6.4.  When defining

>#define NETWORK_DATABASE	/* */

>I run into problems where newgroup name length run into the >5000.

The problem is that writing and reading an individual group when
not in sequential mode doesn't take the db_lock into account.

Change the line (split here):
	fseek(master_file, MASTER_FIELDS * sizeof(net_long) 
			+ GROUP_FIELDS * sizeof(net_long) * gh->group_num, 0);
to:
	fseek(master_file, MASTER_FIELDS * sizeof(net_long) 
			+ DB_LOCK_MESSAGE 
			+ GROUP_FIELDS * sizeof(net_long) * gh->group_num, 0);
around line 693 of db.c.
Make exactly the same change around line 732.

I've reported this fix to nn-bugs.
--
	Steven
	grady@postgres.berkeley.edu
	...!ucbvax!grady
Technical Details
Message-ID: <22708@pasteur.Berkeley.EDU>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!seismo!ukma!tut.cis.ohio-state.edu!mailrus!ames!pasteur!swindle.Berkeley.EDU!grady
References: <6716@hydra.gatech.EDU>

Show Full Headers
Complete Article Headers
Message-ID: <22708@pasteur.Berkeley.EDU>
Subject: Re: problems with nn6.4 beta
Date: Tue, 06 Mar 1990 22:35:23 +0000
From: grady@swindle.Berkeley.EDU (Steven Grady)
References: <6716@hydra.gatech.EDU>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!seismo!ukma!tut.cis.ohio-state.edu!mailrus!ames!pasteur!swindle.Berkeley.EDU!grady
Newsgroups: news.software.nn
Sender: news@pasteur.Berkeley.EDU
Lines: 27
Posted: Tue Mar 6 23:35:23 1990