Menu

#8 trn -c -s<bignum> corrupts .newsrc

open
nobody
misc (7)
5
2000-11-12
2000-11-12
No

When doing 'trn -c -s<bignum>' where bignum is larger
than the number of groups with unread news, the .newsrc
files gets corrupted.

Patch:

--- rcln.c.ORIG Sun Nov 12 18:28:46 2000
+++ rcln.c Sun Nov 12 18:28:46 2000
@@ -521,7 +521,8 @@
free(np->rcline);
np->rcline = mbuf;
}
- np->rc->flags |= RF_RCCHANGED;
+ if (!checkflag)
+ np->rc->flags |= RF_RCCHANGED;
}

#ifdef DEBUG

This avoids the .newsrc being rewritten with bogus
information sometime later.

Discussion


Log in to post a comment.