🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #15641

Re: nnrpd from INN1.5.1 on Solaris 2.5 - Newnews causes core dump

#15641
From: Per Hedeland
Date: Sat, 08 Mar 1997 00:00
43 lines
1819 bytes
In article <331FC005.6D4F@att.net.au> Stephen Ollis <ollis@att.net.au> writes:
>Under 1.5.1, doing a telnet news 119, mode reader, then newnews *�970307
>000000 GMT�causes nnrpd to dump core..

Try the patch below - don't you just love useless "optimizations" that
break working code?

>Compiled on Solaris 2.5 via gcc v2.5.6

You really should get hold of a modern compiler - gcc 2.5.6 is more
than three years old, which among other things means that it predates
Solaris 2.5 by one or two. The current version is 2.7.2.2, I believe.

>All comments, thoughts, assistance to mailto:ollis@att.net.au

Posting Cc'ed (also to inn-bugs@isc.org).

--Per Hedeland
per@erix.ericsson.se


*** nnrpd/newnews.c.ORIG	Sat Nov 30 00:32:18 1996
--- nnrpd/newnews.c	Fri Mar  7 13:50:36 1997
***************
*** 242,254 ****
  	AllDists = FALSE;
      }
  
-     /* Optimization in case client asks for !* (no groups) */
-     if (!strcmp(groups[0], "!*")) {
- 	Reply("%s\r\n", NNTP_NEWNEWSOK);
- 	Printf(".\r\n");
- 	return;
-     }
- 
      if ((F = fopen(HISTORY, "r")) == NULL) {
  	syslog(L_ERROR, "%s cant fopen %s %m",
  	    ClientHost, HISTORY);
--- 242,247 ----


Technical Details
Message-ID: <5fqkse$n49$1@news.du.etx.ericsson.se>
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: <331FC005.6D4F@att.net.au>

Show Full Headers
Complete Article Headers
Message-ID: <5fqkse$n49$1@news.du.etx.ericsson.se>
Subject: Re: nnrpd from INN1.5.1 on Solaris 2.5 - Newnews causes core dump
Date: Sat, 08 Mar 1997 00:00:00 +0000
From: per@erix.ericsson.se (Per Hedeland)
References: <331FC005.6D4F@att.net.au>
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: 223889628
Organization: Ericsson Telecom, Stockholm, Sweden
NNTP-Posting-User: per
Newsgroups: news.software.nntp