Article View: news.software.nntp
Article #79260Re: Status of NNTPCache?
From: Patrick Vervoorn
Date: Tue, 05 Aug 2008 12:31
Date: Tue, 05 Aug 2008 12:31
41 lines
2913 bytes
2913 bytes
In article <48973931$0$49839$e4fe514c@news.xs4all.nl>,
Patrick Vervoorn <patrick.vervoorn@NOSPAM.perihelion.demon.nl> wrote:
[snip]
>It's a Debian box, but I don't have root access, so I'd like to compile it
>myself. Managed to compile NNTPCache fine, it even worked with a local
>newsserver which authenticated on ip, but the NNTPCache binary dumps core
>when I change the server to another one, which needs a user:pass to
>authenticate.
>
>I've mailed to the NNTPCache support address, but due to the fact that
>it's also an address @nntpcache.com, I'm wondering if that disappears down
>some black hole in that same company that also provides the garbage
>webpage there...
Haven't heard anything from my email, so I started digging around myself.
Simply added 'settaskinfo("blabla");' statements in the code, and ran it
with gdb (which shows that 'blabla' label).
I finally traced it to the parsing of the hostname string in the
nntpcache.c file, the load_servers function. Somewhere at the end of that,
it tries to pars the string "user:pass@news.server.tld" into the three
different pieces 'user', 'pass' and 'hostname'. However, it fails
miserably at that, because when I printf the results of the piece of code
doing this, I get:
hostname: (null)
user: (null)
pass: pass@news.server.tld
It then tries to do:
list->host = Sstrdup (hostname);
which apparently dumps core because hostname is null.
It's a mess. Does anyone here have a piece of code which extracts,
cleanly, user, pass and host from a string "user:pass@host"?
Regards, Patrick.
Technical Details
Message-ID:
<4898483a$0$49959$e4fe514c@news.xs4all.nl>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.dca.giganews.com!nntp.giganews.com!postnews.google.com!news4.google.com!feeder.news-service.com!feeder3.cambrium.nl!feed.tweaknews.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mailReferences:
<48972169$0$49845$e4fe514c@news.xs4all.nl> <slrng9ec09.4qo.NOSPAM-seeMySig@msgid.cmeerw.org> <48973931$0$49839$e4fe514c@news.xs4all.nl>Show Full Headers
Complete Article Headers
Message-ID: <4898483a$0$49959$e4fe514c@news.xs4all.nl> Subject: Re: Status of NNTPCache? Date: Tue, 05 Aug 2008 12:31:54 +0000 From: Patrick Vervoorn <patrick.vervoorn@NOSPAM.perihelion.demon.nl> References: <48972169$0$49845$e4fe514c@news.xs4all.nl> <slrng9ec09.4qo.NOSPAM-seeMySig@msgid.cmeerw.org> <48973931$0$49839$e4fe514c@news.xs4all.nl> 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.dca.giganews.com!nntp.giganews.com!postnews.google.com!news4.google.com!feeder.news-service.com!feeder3.cambrium.nl!feed.tweaknews.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Newsgroups: news.software.nntp Organization: Patricks Home System, Hengelo, NL X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: vervoorn@perihelion.demon.nl (Patrick Vervoorn) Lines: 41 NNTP-Posting-Host: 82.161.61.59 X-Trace: 1217939514 news.xs4all.nl 49959 [::ffff:82.161.61.59]:17339 X-Complaints-To: abuse@xs4all.nl