🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #881

Re: More NNTP/NN fails to post

#881
From: Gary Bridgewater
Date: Sun, 23 Dec 1990 06:51
32 lines
1884 bytes
In article <1990Dec22.024405.28519@supernet.haus.com> cluther@supernet.haus.com (Clay Luther) writes:
>I have tracked the NN->NNTP posting problem down to the following error, 
>I assume emitted by the NNTP server:
>
>spawn: execle(/usr/lib/news/inews)/usr/lib/news/inews: Exec format error

Presumably your execle call is as picky as ours.  A couple of things can
happen in that execle: 1) the "flag" argument can actually be NULL prematurely
ending the argv's and killing "myenviron" and/or 2) the "myenviron" pointer
can be NULL.
On my system, #2 gave me your message.
Presumably this line in server/spawn.c
		execle(path, name, flag, (char *) NULL, myenviron);
should be changed to something like
		if ( flag )
		    if ( myenviron )
			execle(path, name, flag, (char *) NULL, myenviron);
		    else
			execl(path, name, flag, (char *) NULL);
		else
		    if ( myenviron )
			execle(path, name, (char *) NULL, myenviron);
		    else
			execl(path, name, (char *) NULL);


Or at least that is the result of a few hours experimentation on my system.
-- 
Gary Bridgewater, Data General Corporation, Sunnyvale California
gary@sv.dg.com or {amdahl,aeras,amdcad}!dgcad!gary
C++ - it's the right thing to do.
Technical Details
Message-ID: <1990Dec23.065101.6967@proa.sv.dg.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!attcan!utgpu!watserv1!watmath!att!tut.cis.ohio-state.edu!cs.utexas.edu!sun-barr!newstop!sun!amdcad!dgcad!proa.sv.dg.com!gary
References: <1990Dec22.024405.28519@supernet.haus.com>

Show Full Headers
Complete Article Headers
Message-ID: <1990Dec23.065101.6967@proa.sv.dg.com>
Subject: Re: More NNTP/NN fails to post
Date: Sun, 23 Dec 1990 06:51:01 +0000
From: gary@proa.sv.dg.com (Gary Bridgewater)
References: <1990Dec22.024405.28519@supernet.haus.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!attcan!utgpu!watserv1!watmath!att!tut.cis.ohio-state.edu!cs.utexas.edu!sun-barr!newstop!sun!amdcad!dgcad!proa.sv.dg.com!gary
Newsgroups: news.software.nntp
Organization: Data General SDD, Sunnyvale, CA
Lines: 30