[news.software.nntp] More NNTP/NN fails to post

cluther@supernet.haus.com (Clay Luther) (12/22/90)

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

Kim??  Anyone?  I was using NN's mini-inews at the time.


-- 
Clay Luther, Postmaster          cluther@supernet.haus.com 
  Harris Adacom Corporation      cluther@enigma.haus.com
  Voice:  214/386-2356           MS 23, PO Box 809022, Dallas, Tx 75380-9022
  Fax:    214/386-2159           Your mileage may vary.  Void where prohibited.

gary@proa.sv.dg.com (Gary Bridgewater) (12/23/90)

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.