Xref: utzoo news.software.nn:565 news.software.b:4914 Path: utzoo!utstat!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!dkuugin!storm From: storm@login.dkuug.dk (Kim F. Storm) Newsgroups: news.software.nn,news.software.b Subject: Re: Fix for SCO posting with nnpost to cnews Keywords: nnpost nn cnews posting Message-ID: Date: 4 Jun 90 19:16:42 GMT References: <1990May29.224134.6404@telesys.cts.com> Sender: news@slyrf.dkuug.dk Reply-To: storm@texas.dk Followup-To: news.software.nn Lines: 18 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