🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #72450

Re: Rebuilding overview for single group ?

#72450
From: Russ Allbery
Date: Fri, 14 Oct 2005 03:17
53 lines
2656 bytes
Christian Kratzer <ck+usenet@cksoft.de> writes:

> Do you have any details how the xref duplication was fixed in stable ?

Index: innd/art.c
===================================================================
--- art.c	(revision 7237)
+++ art.c	(working copy)
@@ -631,7 +631,7 @@
   if (i == HDR__BYTES)
     cp->Data.BytesHeader = header;
   hc = &hc[i];
-  if (hc->Length > 0) {
+  if (hc->Length != 0) {
     /* duplicated */
     hc->Length = -1;
   } else {
@@ -1019,12 +1019,17 @@
   /* Make sure all the headers we need are there */
   for (i = 0; i < MAX_ARTHEADER ; i++) {
     if (hp[i].Type == HTreq) {
-      if (!HDR_FOUND(i)) {
+      if (HDR_FOUND(i))
+        continue;
+      if (hc[i].Length < 0) {
+        sprintf(buff, "%d Duplicate \"%s\" header", NNTP_REJECTIT_VAL,
+                hp[1].Name);
+      } else {
 	sprintf(buff, "%d Missing \"%s\" header", NNTP_REJECTIT_VAL,
-	  hp[i].Name);
-	TMRstop(TMR_ARTCLEAN);
-	return false;
+                hp[i].Name);
       }
+      TMRstop(TMR_ARTCLEAN);
+      return false;
     }
   }
 
@@ -1525,6 +1530,7 @@
     GroupPointers[i++] = ngp;
     nogroup = false;
   }
+  GroupPointers[i] = NULL;
   if (nogroup)
     return false;
   return true;

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87oe5skcsh.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <did720$lvl$1@news.germany.com> <87fyr9f7l0.fsf@windlord.stanford.edu> <dil4t2$27q$1@news.germany.com> <87oe5tcqe8.fsf@windlord.stanford.edu> <dimako$dv4$1@news.germany.com>

Show Full Headers
Complete Article Headers
Message-ID: <87oe5skcsh.fsf@windlord.stanford.edu>
Subject: Re: Rebuilding overview for single group ?
Date: Thu, 13 Oct 2005 20:17:18 -0700
From: Russ Allbery <rra@stanford.edu>
References: <did720$lvl$1@news.germany.com> <87fyr9f7l0.fsf@windlord.stanford.edu> <dil4t2$27q$1@news.germany.com> <87oe5tcqe8.fsf@windlord.stanford.edu> <dimako$dv4$1@news.germany.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 53
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1129259838 23198 171.64.19.147 (14 Oct 2005
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.110004 (No Gnus v0.4) XEmacs/21.4.17 (linux)
Cancel-Lock: sha1:6o4FWGc1bjdvRRnQgqsMm31Y2h0=