🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81027

Re: help debug this nntpcache section

#81027
From: Wolfgang Schelongowski
Date: Fri, 15 May 2009 18:50
25 lines
1741 bytes
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.
-- 
The first entry of Sin into the mind occurs when, out of cowardice or
conformity or vanity, the Real is replaced by a comforting lie.
  -- Integritas, Consonantia, Claritas
Technical Details
Message-ID: <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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!lilly.ping.de!xivic.prima.de!not-for-mail
References: <ovmOl.56299$ew.39243@newsfe24.iad>

Show Full Headers
Complete Article Headers
Message-ID: <gukdht$jh6$1@ID-102910.user.uni-berlin.de>
Subject: Re: help debug this nntpcache section
Date: Fri, 15 May 2009 18:50:37 +0000
From: Wolfgang.Schelongowski@gmx.de (Wolfgang Schelongowski)
References: <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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!lilly.ping.de!xivic.prima.de!not-for-mail
Newsgroups: news.software.nntp
Organization: Private site in Germany
Lines: 25
Reply-To: nospam+949ra7$h6e$1$94fljh$i3t$1$949ra7$h6e$1$94fljh$i3t$1@xivic.prima.de
 (Wolfgang Schelongowski)
X-Accept-Language: de, de-DE, en