Article View: news.software.nntp
Article #80994help debug this nntpcache section
From: Etian
Date: Tue, 12 May 2009 22:12
Date: Tue, 12 May 2009 22:12
31 lines
2286 bytes
2286 bytes
I'm not a C programmer, but I got nntpcache (3.0.2) to work when I
replaced this code segment with simple assignment to list->user and
list->pass and skipped parsing it from the config file. Otherwise, it
crashes whenever you try to assign a username and password to the host
from the config file. It works if you are using a host that doesn't
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")
Here is the code segment from nntpcache.c
/* if there's a @ in host there's a user and password */
hostname = username = password = NULL;
if (strchr(host, '@') != NULL)
{
if ((password = strrchr(host, ':')) != NULL)
*(password++) = '\0';
else
{
loge (("missing password in %s:%d: %s", file, n, buf));
continue;
}
if ((hostname = strrchr(password-2, '@')) != NULL) {
*(hostname++) = '\0';
username = host;
list->user = Sstrdup (username);
list->pass = Sstrdup (password);
}
} else {
hostname = host;
}
Technical Details
Message-ID:
<ovmOl.56299$ew.39243@newsfe24.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!feeder.news-service.com!feeder8.cambrium.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe24.iad.POSTED!e38f14da!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <ovmOl.56299$ew.39243@newsfe24.iad> Subject: help debug this nntpcache section Date: Tue, 12 May 2009 16:12:35 -0600 From: Etian <54698212@sonic-news.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!feeder8.cambrium.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe24.iad.POSTED!e38f14da!not-for-mail User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 Newsgroups: news.software.nntp Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 31 X-Complaints-To: abuse@Sonic-News.com--send only the headers and the reason for your complaint NNTP-Posting-Date: Tue, 12 May 2009 22:12:36 UTC Organization: Sonic-News.com--complete, high-retention, from $3.99/month