🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55599

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

#55599
From: Curt Welch
Date: Mon, 10 Dec 2001 20:42
30 lines
2523 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote:
> In article <1ru1uyalzl.fsf@sex.ifi.uio.no>,
> Kjetil Torgrim Homme  <kjetilho@haey.ifi.uio.no> wrote:
> >[Jeffrey M. Vinocur]
> >
> >>   I've been wrestling with how, if you get the original buffer
> >>   passed in as well, you can find the beginning of everything-else
> >>   without running over the string again (which is just yuck).
> >
> >And yet most people set up their server to let Perl run through every
> >article in many passes ... :-)
>
> Oh, not for the cost of walking the array twice, but rather for
> the fact that you'd have to effectively duplicate the code for
> argify all over again.

Just a thought to throw out...

In addition to the argv[] data, you could make the argify routine
return a index into the command line of where each argv[] string
started.  So that way, the code that wants to see everything after
argv[0] could simply start at cmd_line[argoffset[0]+strlen(argv[0])].

That would prevent you from having to duplicate the argify routine (and
risk it not being changed in sync at some point in the future).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20011210154233.073$64@newsreader.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!dca6-feed2.news.digex.net!intermedia!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <9urfpi$7vi$1@teta.doit.wisc.edu> <slrna16ao4.23i3.andrew+nonews@trinity.supernews.net> <9v03li$bq6$1@marduk.litech.org> <1ru1uyalzl.fsf@sex.ifi.uio.no> <9v349h$lro$2@marduk.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <20011210154233.073$64@newsreader.com>
Subject: Re: Is there a hack to support paswords that contain spaces?
Date: Mon, 10 Dec 2001 20:42:33 +0000
From: curt@kcwc.com (Curt Welch)
References: <9urfpi$7vi$1@teta.doit.wisc.edu> <slrna16ao4.23i3.andrew+nonews@trinity.supernews.net> <9v03li$bq6$1@marduk.litech.org> <1ru1uyalzl.fsf@sex.ifi.uio.no> <9v349h$lro$2@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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!dca6-feed2.news.digex.net!intermedia!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com oC,Q7xMKJ7n5v/W=/dKRmJqwHL1o_2sItDrzSz1s8E3jJk
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 29