🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #7414

Error found in nn-6.5.0.b3 source when building to use NOV over NNTP

#7414
From: Craig Dewick
Date: Sun, 14 Jan 1996 00:00
64 lines
2841 bytes
I've decided to dump the news spool off my main machine (along with Inn)
to free up a large slab of disk space, and re-compile NN to use NNTP (with
NOV) to talk to the news server running on this machine. 

However, in the process of re-compiling the software, I've discovered an
error in the prototype definition for the 'nntp_get_overview()' function as
listed on line 653 of 'global.h'. 

In 'nntp.c', where this function's code appears, the arguments to the 
function are declared as follows:

/*
** Prime the nntp server to snarf the overview file for a newsgroup.
** Sends the XOVER command and prepares to read the result.
*/
struct novgroup *
nntp_get_overview(gh, first, last)
group_header *gh;
article_number first, last;

In 'global.h', the prototype for this function is as follows:

/* nntp.c */

struct novgroup *nntp_get_overview	__APROTO((group_header *gh, int low, int high));

Near the top of 'global.h' there is a typedef for 'article_number' as
follows: 

typedef int32	article_number;

Also, the second and third arguments are listed with incorrect names in
the prototype. 

To repair this problem, I've altered the prototype for
'nntp_get_overview()' in 'global.h' to read: 

struct novgroup *nntp_get_overview	__APROTO((group_header *gh, article_number first, article_number last));

And with this change made, 'nntp.c' compiles without any further problems.

I've successfully installed and used the rebuilt version of NN on the
other machine, and it works happily talking to Inn running on this
machine, except for one thing... 

When I try to post an article from the other machine, NN reports the
article posted successfully, but the post actually fails with error 480
being apparently returned from this machine. 

I wonder if this is a problem with the mini-inews supplied with the NN
6.5.0.b3 distribution? Any pointers to working out what the problem is
would be appreciated. 

Regards,

Craig.
-- 
             Craig Dewick. Send email to 'cdewick@orb.apana.org.au'
                 The Core Matrix Foundation - Sydney, Australia
   (02)527-1292 (intl. +612-527-1292), or http://jedi.apana.org.au/core.html
 Always striving for a secure long-term future in an insecure short-term world

Technical Details
Message-ID: <4daen0$4qg@orb.apana.org.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <4daen0$4qg@orb.apana.org.au>
Subject: Error found in nn-6.5.0.b3 source when building to use NOV over NNTP
Date: Sun, 14 Jan 1996 00:00:00 +0000
From: cdewick@orb.apana.org.au (Craig Dewick)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
X-Deja-AN: 135171053
Distribution: inet
Organization: ORB - the Core Matrix Foundation
Newsgroups: news.software.nn