trn -c -s<bignum> corrupts .newsrc
Status: Beta
Brought to you by:
wayned
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.