🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #18014

Re: INN: trouble with ctlinnd begin?

#18014
From: Andrew A. Vasilyev
Date: Tue, 27 May 1997 00:00
45 lines
1846 bytes
Jeff Garzik <jeff.garzik@spinne.com> wrote:
JG> The man page for ctlinnd indicates that a begin command on an existing
JG> channel feed causes an implicit 'drop' command to be sent first. 
JG> However, when I use the command, it drops not only the feed, but crashes
JG> the entire server.

  Try this patch (it is very simple, but your line numbers could
  vary, so double check the result):

*** inn-1.5.1/innd/art.c	Sun Apr 20 21:25:13 1997
--- inn/innd/art.c	Wed May 14 18:49:44 1997
***************
*** 1643,1653 ****
  	    if (funnel->FNLwantsnames) {
  		bp = &funnel->FNLnames;
  		p = &bp->Data[bp->Used];
  		if (bp->Used) {
  		    *p++ = ' ';
  		    bp->Used++;
  		}
! 		bp->Used += strlen(strcpy(p, sp->Name));
  	    }
  	}
  }
--- 1673,1687 ----
  	    if (funnel->FNLwantsnames) {
  		bp = &funnel->FNLnames;
  		p = &bp->Data[bp->Used];
+ /* XXX */       if(!p) {
+ 		    syslog(L_ERROR, "%s ARTpropagate(%s) - no data buffer", LogName, funnel->Name ? funnel->Name : "UNKNOWN");
+ 		    continue;
+ 		}
  		if (bp->Used) {
  		    *p++ = ' ';
  		    bp->Used++;
  		}
! 		bp->Used += strlen(strcpy(p, sp->Name ? sp->Name : "?")); /* XXX dumped core when funnel process died --Andy */
  	    }
  	}
  }
_______
	ANDY

Technical Details
Message-ID: <5mefse$867$1@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: <337DED3B.5E51BC99@spinne.com>

Show Full Headers
Complete Article Headers
Message-ID: <5mefse$867$1@news.demos.su>
Subject: Re: INN: trouble with ctlinnd begin?
Date: Tue, 27 May 1997 00:00:00 +0000
From: Andrew A. Vasilyev <andy@snm.demos.su>
References: <337DED3B.5E51BC99@spinne.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: 244217259
Distribution: world
Organization: Demos Online Service
Newsgroups: news.software.nntp