Article View: news.software.nn
Article #1376WARNING: Don't ever reorder GROUPS file!
From: Kim F. Storm
Date: Mon, 04 Feb 1991 14:14
Date: Mon, 04 Feb 1991 14:14
50 lines
2790 bytes
2790 bytes
tale@rpi.edu (David C Lawrence) wrote: > I've been told not to edit .newsrc directly, > >Who told you that? I just searched through the nn manual on "nn" and >could not find anything that said something like that. A near as I >can tell, it is a needless warning, unless qualified by "when a >newsreader is running". Then, I don't know what would happen. Nothing except that the changes would probably be lost the next time the news reader updates the file. So like any other file, it is a bad idea to edit it while it is in use by some other program. > > and the GROUPS file starts out with the line > # DO NOT REMOVE OR REORDER ANY LINES IN THIS FILE > >As far as I _think_ it is implemeneted, without having checked, the >order is not significant when DB_LONG_NAMES is configured. NN names >the db files based on the location in GROUP otherwise, so reordering >it would give very bogus results. DONT'T EVER DO THIS. The order of the lines in the GROUPS file is a 1:1 relation to the order of the group information in the MASTER file, and nn relies on this relationship to know the name of the groups. So if you reorder GROUPS in any way, it is no longer synchronized with the MASTER file and your database will have become corrupted beyond any chance of recovery! DB_LONG_NAMES only determine how to name the files in the database - and to do that you need to know the names of the groups which is stored in the GROUPS file - so if you reorder it, you can't even find the right database files anymore. >(Unfortunately, Kim did not announce until the patch that split up >DATA that it is better not to have it defined. Now I have my >DB_LONG_NAMES database set up and at the moment no readily available >way to convert everything. Then again, I'm not really sure >DB_LONG_NAMES is that bad.) Well, if you have DB_LONG_NAMES defined, and don't want it anymore, the only way to convert is to recompile the package and rebuild the database after manually removing the old one. No big deal! -- Kim F. Storm <storm@texas.dk> No news is good news, Texas Instruments A/S, Denmark but nn is better!
Technical Details
Message-ID:
<763@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!stormReferences:
<?9$&'Y|@rpi.edu> <1991Jan31.191511.6835@crom2.uucp>Show Full Headers
Complete Article Headers
Message-ID: <763@texas.dk> Subject: WARNING: Don't ever reorder GROUPS file! Date: Mon, 04 Feb 1991 14:14:20 +0000 From: storm@texas.dk (Kim F. Storm) References: <?9$&'Y|@rpi.edu> <1991Jan31.191511.6835@crom2.uucp> 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 Summary: It will destroy the database Organization: Texas Instruments, Denmark Lines: 50