🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #5334

Re: Tin 1.21 Error Message On Post

#5334
From: David C Lawrence
Date: Wed, 18 Aug 1993 13:44
20 lines
1702 bytes
In <CByCDM.LLC@info.bris.ac.uk> ccpes@sun.cse.bris.ac.uk (PE. Smee) writes:
> This Cnews script inews returns 1 ('exit 1') if anything goes wrong,
> and 0 ('exit 0') if it works -- as does injnews, which it execs at the end.
> 
> The tin function 'submit_file' (in Tin's 'inews.c' which is a handle
> out to real inews) returns this code in turn to post.c, which is where
> it was called from.  All 5 places in post.c from which submit_file is
> called assume that if submit_file returns a '0', it failed, and that
> otherwise it worked [...]
> 
> I don't want to hack with inews -- even though it's probably its fault [...]

This is most certainly tin's problem, not inews's fault.  It is
standard behaviour for a UNIX programme to exit with a zero status if
it succeeded in doing what was asked, and a non-zero status otherwise.
Your fix to return "NOT exit_status" was not a kludge, but the right
thing to do given that submit_file() was expected to return non-zero
if it was successful.

David
Technical Details
Message-ID: <24tbnr$93r@news.UU.NET>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!tale
References: <1993Aug18.092022.23155@turtle.apana.org.au> <CByCDM.LLC@info.bris.ac.uk>

Show Full Headers
Complete Article Headers
Message-ID: <24tbnr$93r@news.UU.NET>
Subject: Re: Tin 1.21 Error Message On Post
Date: Wed, 18 Aug 1993 13:44:27 +0000
From: tale@ten.uu.net (David C Lawrence)
References: <1993Aug18.092022.23155@turtle.apana.org.au> <CByCDM.LLC@info.bris.ac.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!tale
Newsgroups: news.software.readers
Organization: UUNET Technologies, Inc.
Lines: 20
NNTP-Posting-Host: ten.uu.net