Article View: news.software.nntp
Article #48468Re: Got it! ckpasswd -f bug (INN 2.3.0)
From: Aidan Cully
Date: Wed, 20 Sep 2000 05:53
Date: Wed, 20 Sep 2000 05:53
24 lines
2251 bytes
2251 bytes
FYI, when I wrote ckpasswd (I'm pretty sure I wrote it, but it's been so long...), I wrote it with the idea that people would use ckpasswd -f on a standard-issue unix /etc/passwd format file. Ignoring the stuff that comes after the second ':' was a compromise, based on the fact that different *nixes have different numbers of fields in the pwent. If I could have, I would have made it count the number of ':'s, and maybe even use standard getpwent() type functions for iterating over the file. In news.software.nntp, "Giovanni Lopedote" <nospamplease@gmx.net> wrote: > Maybe you can think different if you take a look at the whole code. Yes, > that one is a sanity check, but in the wrong place, I think. The one on > expected format is done before, at line 63. This was the whole function: The first one is because we need to get the name out, reliably. It's not the whole sanity check, it's just the part of the sanity check that's needed to match the correct line in the file. > As I told, I was not able to get it working until I've made this correction. I'm sorry I missed your original message. I don't know how to treat your correction... I just wanted to explain the code a bit more. --aidan
Technical Details
Message-ID:
<8q9jc5$e27$1@news.panix.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!supernews.google.com!sn-xit-02!sn-east!supernews.com!news-feed.riddles.org.uk!arclight.uoregon.edu!newsfeed.mathworks.com!panix!news.panix.com!not-for-mailReferences:
<8q7kje$gds$1@nread1.inwind.it> <8q83h1$gn2$1@newssvr02.news.prodigy.com> <39c7f695@wsnews.worldshare.net>Show Full Headers
Complete Article Headers
Message-ID: <8q9jc5$e27$1@news.panix.com> Subject: Re: Got it! ckpasswd -f bug (INN 2.3.0) Date: Wed, 20 Sep 2000 05:53:09 +0000 From: aidan@panix.com (Aidan Cully) References: <8q7kje$gds$1@nread1.inwind.it> <8q83h1$gn2$1@newssvr02.news.prodigy.com> <39c7f695@wsnews.worldshare.net> 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!supernews.google.com!sn-xit-02!sn-east!supernews.com!news-feed.riddles.org.uk!arclight.uoregon.edu!newsfeed.mathworks.com!panix!news.panix.com!not-for-mail Newsgroups: news.software.nntp Organization: Public Access Networks Corp. Lines: 23 Distribution: inet NNTP-Posting-Host: panix3.panix.com X-Trace: news.panix.com 969429189 14407 166.84.0.228 (20 Sep 2000 05:53:09 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: 20 Sep 2000 05:53:09 GMT X-Newsreader: trn 4.0-test72 (19 April 1999)