Article View: news.software.nntp
Article #57161Re: listgroup oddity
From: Russ Allbery
Date: Sun, 10 Mar 2002 01:23
Date: Sun, 10 Mar 2002 01:23
40 lines
2351 bytes
2351 bytes
Ben Rosengart <br@panix.com> writes:
> Some users of mine are reporting strange output from the "listgroup"
> command. Some article numbers have an extra ^M after them in the
> listing, e.g. article 45131 in one of our local groups:
> 45129^M
> 45130^M
> 45131^M^M
> 45132^M
> 45133^M
> We're using INN 2.3.2. The groups that people are reporting problems
> with are stored on tradspool, but there may be similar problems with
> groups stored on cnfs, we just haven't seen it yet.
> Any idea what this could be?
I have no idea what could possibly be up with that. I also don't see any
way for the code to generate that behavior; the LISTGROUP results are
generated by a pretty straightforward loop:
Reply("%d Article list follows\r\n", NNTP_GROUPOK_VAL);
while (OVsearch(handle, &i, NULL, NULL, &token, NULL)) {
if (PERMaccessconf->nnrpdcheckart && !ARTinstorebytoken(token))
continue;
Printf("%ld\r\n", i);
}
OVclosesearch(handle);
Printf(".\r\n");
I don't see how the %ld format could ever not produce some sort of number
even if really weird things where happening to i.
--
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:
<ylelitz047.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<slrna72p91.ls4.br@panix2.panix.com>Show Full Headers
Complete Article Headers
Message-ID: <ylelitz047.fsf@windlord.stanford.edu> Subject: Re: listgroup oddity Date: Sat, 09 Mar 2002 17:23:52 -0800 From: Russ Allbery <rra@stanford.edu> References: <slrna72p91.ls4.br@panix2.panix.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 39 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1015723433 8916 171.64.13.23 (10 Mar 2002 01:23:53 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Common Lisp, sparc-sun-solaris2.6) Cancel-Lock: sha1:VLlxUOFrS/crWQj4tv3oYldcAsE=