Article View: news.software.nntp
Article #2116Re: INN 1.4 list subscriptions patch
From: Shane Davis
Date: Thu, 02 Sep 1993 15:10
Date: Thu, 02 Sep 1993 15:10
56 lines
3383 bytes
3383 bytes
Wayne Davison (davison@borland.com) wrote:
> According to Shane Davis <shane@utdallas.edu>:
> > ***************
> > *** 170,176 ****
> >
> > /* Read lines, ignore long ones. */
> > while ((p = QIOread(qp)) != NULL) {
> > ! if (lp == &INFOdistribs || lp == &INFOdistribpats) {
> > Printf("%s\r\n", p);
> > continue;
> > }
> > --- 176,182 ----
> >
> > /* Read lines, ignore long ones. */
> > while ((p = QIOread(qp)) != NULL) {
> > ! if (lp == &INFOdistribs || lp == &INFOdistribpats || lp ==
> > &INFOsubs) {
> > Printf("%s\r\n", p);
> > continue;
> > }
> >
> I don't agree with this bit. If you leave this code alone nnrp will check
> each group's authorization and only send the ones in the list that the user
> is authorized to receive. Your patch allows unauthorized groups to slip
Subject: Re: INN 1.4 list subscriptions patch
Newsgroups: news.software.readers,news.software.b,news.software.nntp
Followup-To: news.software.readers,news.software.b,news.software.nntp
References: <CCA0G5.G59@borland.com> <25ga9d$aio@falstaff.umd.edu> <262hn9$ofd@news.utdallas.edu> <CCosvA.L3r@borland.com>
X-Newsreader: TIN [version 1.2 PL1]
Wayne Davison (davison@borland.com) wrote:
> According to Shane Davis <shane@utdallas.edu>:
> > ***************
> > *** 170,176 ****
[...patch...]
> I don't agree with this bit. If you leave this code alone nnrp will check
> each group's authorization and only send the ones in the list that the user
> is authorized to receive. Your patch allows unauthorized groups to slip
> through.
That's a good point...my thinking went, "subscriptions is a plain file with
one field, like distributions, so duplicating the logic should do the trick"
since it was 5:30 pm on Friday and I was sort of under the gun to get tin
available. I didn't even notice what the rest of that code did, I just knew
that what worked for distributions would work for subscriptions...
Thanks for pointing it out!
--Shane
--
Network Systems Software I needed a new vice after I quit smoking;
Univ. of Texas at Dallas so, after 7 .signature-free years...
"This is side 5...follow along in your book and repeat after me as we learn 3
new words in Turkish...towel...bath...border...May I see your passport, please?"
Technical Details
Message-ID:
<2652ck$1hi@news.utdallas.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!uwm.edu!linac!convex!news.utdallas.edu!shaneReferences:
<CCA0G5.G59@borland.com> <25ga9d$aio@falstaff.umd.edu> <262hn9$ofd@news.utdallas.edu> <CCosvA.L3r@borland.com>Show Full Headers
Complete Article Headers
Message-ID: <2652ck$1hi@news.utdallas.edu> Subject: Re: INN 1.4 list subscriptions patch Date: Thu, 02 Sep 1993 15:10:12 +0000 From: shane@utdallas.edu (Shane Davis) References: <CCA0G5.G59@borland.com> <25ga9d$aio@falstaff.umd.edu> <262hn9$ofd@news.utdallas.edu> <CCosvA.L3r@borland.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!uwm.edu!linac!convex!news.utdallas.edu!shane Newsgroups: news.software.readers,news.software.b,news.software.nntp Followup-To: news.software.readers,news.software.b,news.software.nntp Organization: The University of Texas at Dallas Lines: 57 Distribution: inet NNTP-Posting-Host: corvette.utdallas.edu X-Newsreader: TIN [version 1.2 PL1]