🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55557

Re: Is there a hack to support paswords that contain spaces?

#55557
From: Russ Allbery
Date: Sun, 09 Dec 2001 04:21
33 lines
2349 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:

> Oh wait.  Implementing this for nnrpd could be a bit hairy...

Heh.  Yes.  That's why it's not been fixed.

I think we have to do one of these:

> - change the prototype of everything in nnrpd/commands.c to also
>   take the original buffer as input; this is pretty awful

> - change Argify to special case for authinfo and ignore
>   whitespace after the password begins; this is *really* awful

The right thing to do is probably to pass every function both the raw
command line and the Argify'd command line in case it needs the raw one;
that way nothing has to be special-cased but there isn't massive code
duplication.  Still kind of ugly, though.

> [1] I can't imagine anyone ever putting a tab in a password, so
>     that leaves consecutive spaces.  Which I guess *could*
>     happen, but I'd be awfully surprised.  We're talking mostly
>     about naive users, I think, and...I dunno, it just doesn't
>     seem very likely.

I can imagine someone using a tab.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <ylzo4t2fci.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
References: <9urfpi$7vi$1@teta.doit.wisc.edu> <ylwuzybpvz.fsf@windlord.stanford.edu> <1007846386.132947@ok-corral.gunslinger.net> <ylg06l5r1p.fsf@windlord.stanford.edu> <9uuko7$br8$1@marduk.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <ylzo4t2fci.fsf@windlord.stanford.edu>
Subject: Re: Is there a hack to support paswords that contain spaces?
Date: Sun, 09 Dec 2001 04:21:33 +0000
From: Russ Allbery <rra@stanford.edu>
References: <9urfpi$7vi$1@teta.doit.wisc.edu> <ylwuzybpvz.fsf@windlord.stanford.edu> <1007846386.132947@ok-corral.gunslinger.net> <ylg06l5r1p.fsf@windlord.stanford.edu> <9uuko7$br8$1@marduk.litech.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 32
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1007871693 15581 171.64.13.23 (9 Dec 2001 04:21:33 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)