🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #527

Re: Fix for SCO posting with nnpost to cnews

#527
From: Kim F. Storm
Date: Mon, 04 Jun 1990 19:16
19 lines
1383 bytes
kreed@telesys.cts.com (Kevin W. Reed) writes:

>The following is how I fixed my posting problems using nn 6.4.3 and Cnews.

>It seems that for some reason, when inews is called from nn it is no longer
>attached to a terminal (?) and since this is so, who am i fails.  When called
>from postnews it works ok.

The easy solution for this is to make fd 3 be a tty, since the anne.jones
script checks that.  But it has yet to be tested...

This can be accomplished using
	dup2(2,3)
early in nn's main program (in nn.c).  However, I will probably use
	close(3); dup(2);
since dup2 isn't portable - or is it?

++Kim
Technical Details
Message-ID: <storm.644527002@dkuugin>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!dkuugin!storm
References: <1990May29.224134.6404@telesys.cts.com>

Show Full Headers
Complete Article Headers
Message-ID: <storm.644527002@dkuugin>
Subject: Re: Fix for SCO posting with nnpost to cnews
Date: Mon, 04 Jun 1990 19:16:42 +0000
From: storm@login.dkuug.dk (Kim F. Storm)
References: <1990May29.224134.6404@telesys.cts.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!dkuugin!storm
Newsgroups: news.software.nn,news.software.b
Keywords: nnpost nn cnews posting
Sender: news@slyrf.dkuug.dk
Reply-To: storm@texas.dk
Followup-To: news.software.nn
Lines: 18