Article View: news.software.nntp
Article #81039Re: help debug this nntpcache section
From: Etian
Date: Sat, 16 May 2009 17:03
Date: Sat, 16 May 2009 17:03
30 lines
2267 bytes
2267 bytes
Wolfgang Schelongowski wrote:
> Etian <54698212@sonic-news.com> writes:
>
> ...
>> require login (e.g. host="news.xxxxx.com"). It crashes when you specify
>> a username and password (e.g. host="myusername:mypassword@news.xxxxx.com")
> ...
>> if ((password = strrchr(host, ':')) != NULL)
>> *(password++) = '\0';
>> else
>> {
>> loge (("missing password in %s:%d: %s", file, n, buf));
>> continue;
>
> It is unclear what happens when 'continue' is executed. A 'goto' by
> any other name is still a 'goto' ...
>
>> }
>> if ((hostname = strrchr(password-2, '@')) != NULL) {
>
> Shouldn't that be password+2? Assuming that a password is at least
> one char long, of course. Best just use passwd, without - or + anything.
That is it! (password+2). Thank you. It works now.
This is a great program (compared to leafnode or newscache). It appears
to be orphanware now. I wish somebody would adopt it.
Etian
sonic-news
Technical Details
Message-ID:
<rlCPl.52361$9J5.2231@newsfe13.iad>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!proxad.net!feeder2-2.proxad.net!nx01.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe13.iad.POSTED!e38f14da!not-for-mailReferences:
<ovmOl.56299$ew.39243@newsfe24.iad> <gukdht$jh6$1@ID-102910.user.uni-berlin.de>Show Full Headers
Complete Article Headers
Message-ID: <rlCPl.52361$9J5.2231@newsfe13.iad> Subject: Re: help debug this nntpcache section Date: Sat, 16 May 2009 11:03:12 -0600 From: Etian <54698212@sonic-news.com> References: <ovmOl.56299$ew.39243@newsfe24.iad> <gukdht$jh6$1@ID-102910.user.uni-berlin.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!proxad.net!feeder2-2.proxad.net!nx01.iad01.newshosting.com!newshosting.com!69.16.185.21.MISMATCH!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe13.iad.POSTED!e38f14da!not-for-mail User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 Newsgroups: news.software.nntp In-Reply-To: <gukdht$jh6$1@ID-102910.user.uni-berlin.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 30 X-Complaints-To: abuse@Sonic-News.com--send only the headers and the reason for your complaint NNTP-Posting-Date: Sat, 16 May 2009 17:03:19 UTC Organization: Sonic-News.com--complete, high-retention, from $3.99/month