Article View: news.software.nntp
Article #15652Re: nnrpd from INN1.5.1 on Solaris 2.5 - Newnews causes core dump
From: Per Hedeland
Date: Sat, 08 Mar 1997 00:00
Date: Sat, 08 Mar 1997 00:00
37 lines
2224 bytes
2224 bytes
In article <5fqonq$k6a$1@hammer.msfc.nasa.gov> jpc@drum.msfc.nasa.gov
(J. Porter Clark) writes:
>per@erix.ericsson.se (Per Hedeland) writes:
>>Try the patch below - don't you just love useless "optimizations" that
>>break working code?
>
>>- /* Optimization in case client asks for !* (no groups) */
>>- if (!strcmp(groups[0], "!*")) {
>>- Reply("%s\r\n", NNTP_NEWNEWSOK);
>>- Printf(".\r\n");
>>- return;
>>- }
>
>You're going to hurt my feelings. I think this optimization was one
>of my inventions. What it was intended to counteract was Microsoft
>Exchange News Service (not, apparently, to be confused with Microsoft
>Internet News Service).
Oh - I guess I should have known that M$ was the original cause of this
silliness too! The *proper* fix would of course have been to obliterate
that abominable piece of software from the face of the earth, but I
realize that sometimes you have to settle for less than perfect.:-)
Please accept my apologies and sympathy, but even if not *absolutely*
useless:-), the optimization is still broken - the problem being that
with 'newnews * ...', the 'groups' array is never initialized (or used,
so this is not a bug). Btw, strictly speaking, I think it will also
incorrectly be applied to correct-but-stupid patterns like '!*,news.*'.
If you move the check up to where the newsgroups list is parsed, a
correct implementation should be trivial (I'll leave it to you to send
it to inn-bugs though).
--Per Hedeland
per@erix.ericsson.se
Technical Details
Message-ID:
<5frm2i$1pv$1@news.du.etx.ericsson.se>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!not-for-mailReferences:
<331FC005.6D4F@att.net.au> <5fqkse$n49$1@news.du.etx.ericsson.se> <5fqonq$k6a$1@hammer.msfc.nasa.gov>Show Full Headers
Complete Article Headers
Message-ID: <5frm2i$1pv$1@news.du.etx.ericsson.se> Subject: Re: nnrpd from INN1.5.1 on Solaris 2.5 - Newnews causes core dump Date: Sat, 08 Mar 1997 00:00:00 +0000 From: per@erix.ericsson.se (Per Hedeland) References: <331FC005.6D4F@att.net.au> <5fqkse$n49$1@news.du.etx.ericsson.se> <5fqonq$k6a$1@hammer.msfc.nasa.gov> 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!not-for-mail X-Deja-AN: 223959043 Organization: Ericsson Telecom, Stockholm, Sweden NNTP-Posting-User: per Newsgroups: news.software.nntp