🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #261

Re: Disappearing DATA files.

#261
From: Kim F. Storm
Date: Tue, 03 Apr 1990 22:55
40 lines
2231 bytes
tih@barsoom.nhh.no (Tom Ivar Helbekkmo) writes:

>I'm running the newest release of NN here (retrieved and compiled a
>week ago), and I've run into a strange situation:  It seems to me that
>whenever B news expires the last message in a newsgroup, both data
>files under .../nn/DATA/ representing that group are removed, and a
>"database inconsistency" reported.

That is a genuine bug which has been there since 6.3, but it has not
been triggered until 6.4, because 6.3 didn't actually remove the
INDEX and DATA files when a group became empty as 6.4 does.  It is
fixed in the final 6.4 release, but to fix it in the beta, you can
use the following patch to admin.c:

----------------- admin.c ------------
static file_error(gh, d_or_x, write_offset)
group_header *gh;
char d_or_x;
off_t write_offset;
{
    FILE *f;
    
    if (write_offset == 0) return 0;    <---  add this line
    
    f = open_data_file(gh, d_or_x, OPEN_READ);
---------------------------------------

>Extracting multiple articles by
>specifying something like "~/src/newstuff/foo_*_of_n.sh" will ask if I
>want to create the directory, then ask what to extract, and when I hit
>'*' it will rapidly say it couldn't write each of the articles --

There is some strange intereference between the * in file names and
the save multiple files '*' which I haven't figured out yet.  But I
acknowledge the problem (although I'm not sure I can reproduce it).

-- 
Kim F. Storm        storm@texas.dk        Tel +45 429 174 00
Texas Instruments, Marielundvej 46E, DK-2730 Herlev, Denmark
	  No news is good news, but nn is better!
Technical Details
Message-ID: <504@texas.dk>
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!dkuug!tidk!storm
References: <752@barsoom.nhh.no>

Show Full Headers
Complete Article Headers
Message-ID: <504@texas.dk>
Subject: Re: Disappearing DATA files.
Date: Tue, 03 Apr 1990 22:55:58 +0000
From: storm@texas.dk (Kim F. Storm)
References: <752@barsoom.nhh.no>
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!dkuug!tidk!storm
Newsgroups: news.software.nn
Keywords: bug,DATA
Distribution: news
Organization: Texas Instruments, Denmark
Lines: 40
Posted: Tue Apr 3 23:55:58 1990