🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #4791

trn-3.0 fails to recognize NNTP access denied

#4791
From: David P. Kemp
Date: Fri, 02 Jul 1993 18:59
36 lines
2262 bytes
I have installed trn 3.0 on a SPARCstation-10 running Solaris 2.2.
The only problem during installation was that "configure" guessed
wrong about termios support - I had to edit config.sh by hand to
set "i_termios='define'" since the default i_sgtty won't work
on Solaris.  Has anyone had trn 3.0 configure itself correctly
for Solaris?  Other than this one small nit, it compiled just
fine (using the Sunsoft compiler).

The problem comes when trying to connect to an NNTP server without
permission.  I believe the scenario is thus:

  nntp_connect() calls server_init(), then is supposed to print
  the appropriate response message ("This machine does not have
  permission to use the xxx news server.")

  However, server_init() never returns, because it calls nntp_check(),
  which fails and dies with "Unexpected close of server socket".

Using telnet, the NNTP server returns the appropriate 502 error code.

One suggestion: the message "Unexpected close of server socket"
appears identically in three different routines - it would help
if the three were distinguished somehow (such as prefacing it
with the routine name: prefetchlines, nntp_check, or nntp_gets).

I wouldn't presume to offer a fix for the real problem, but I
would guess that nntp_check and nntp_gets are not intended to be
used until the connection is completely established.  That implies
that they shouldn't be called from server_init.  Or I could be
mistaken :-).


-- 
   Dave Kemp   dpkemp@afterlife.ncsc.mil 
-----------------------------------------------------------------------------
"If it doesn't have an analogy, it isn't Usenet (tm)"
Technical Details
Message-ID: <1993Jul2.185902.12690@afterlife.ncsc.mil>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!darwin.sura.net!ra!cs.umd.edu!afterlife!dpkemp

Show Full Headers
Complete Article Headers
Message-ID: <1993Jul2.185902.12690@afterlife.ncsc.mil>
Subject: trn-3.0 fails to recognize NNTP access denied
Date: Fri, 2 Jul 1993 18:59:02 GMT
From: dpkemp@afterlife.ncsc.mil (David P. Kemp)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!darwin.sura.net!ra!cs.umd.edu!afterlife!dpkemp
Newsgroups: news.software.readers
Organization: The Great Beyond
Lines: 36