🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #1140

Bug when saving articles to a pipe which breaks.

#1140
From: Niklas Hallqvist
Date: Thu, 22 Nov 1990 18:15
26 lines
1554 bytes
	Hello nn-users,

I've discovered a bug in nn version 6.4.12.  When saving a group of
selected articles to a pipe (not as separate files) and the pipe is
broken in one of the articles that's not last, the pipe will be closed
but the remaining articles will still be output on undefined file
descriptor producing a segmentation fault (at least on my machine).

Possible solutions:

1.	Break the while-statement looping over the selected articles
	when the pipe is broken.

2.	Reopen the pipe before continuing with the next article.

I think maybe alternative 1 is what you expect, but I'll leave it up to
Kim to decide what to do about this.  If you want a test case, just
select four or five articles, and S(ave) them to command "|line".

						Niklas
-- 
Niklas Hallqvist	Phone: +46-(0)31-40 75 00
Applitron Datasystem	Fax:   +46-(0)31-83 39 50
Molndalsvagen 95	Email: niklas@appli.se
S-412 63  GOTEBORG, Sweden     mcsun!sunic!chalmers!appli!niklas
Technical Details
Message-ID: <1209@appli.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!chalmers.se!appli!niklas

Show Full Headers
Complete Article Headers
Message-ID: <1209@appli.se>
Subject: Bug when saving articles to a pipe which breaks.
Date: Thu, 22 Nov 1990 18:15:20 +0000
From: niklas@appli.se (Niklas Hallqvist)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!chalmers.se!appli!niklas
Newsgroups: news.software.nn
Organization: Applitron Datasystem AB, GOTHENBURG, SWEDEN
Lines: 26
Posted: Thu Nov 22 19:15:20 1990