Article View: news.software.nntp
Article #48483Re: Got it! ckpasswd -f bug (INN 2.3.0)
From: bill davidsen
Date: Thu, 21 Sep 2000 00:00
Date: Thu, 21 Sep 2000 00:00
42 lines
2677 bytes
2677 bytes
In article <39c7f695@wsnews.worldshare.net>, Giovanni Lopedote <nospamplease@gmx.net> wrote: | (my real email address is at the end of the message) | | "bill davidsen" <davidsen@tmr.com> ha scritto nel messaggio | news:8q83h1$gn2$1@newssvr02.news.prodigy.com... | | > The original code rejected data which did not contain the ':' | > character. I'm not sure that a sanity check on expected format counts as | > a "bug." | | 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: [... snip ...] | let's suppose we have a well-formed line in the passwords file: | | foo:EncryptedPassword This is why I said it's not a bug... the expected file format is UNIX passwd file format, and that's not a well-formed line. You have modified the logic to accept another format by removing the check, but code to validate the expected format is not a "bug," it is correct code. The code as originally written works correctly for correct input. You do the original author a great disservice by calling this a bug. If I fed it a file with the password in MD5 format instead of crypt, I certainly wouldn't call it a bug when it didn't work. And I would call a change to use another format a "local hack" rather than a "bug fix." You didn't understand how to produce an input file in expected format, that's certainly a reason to see if the documentation needs clarification. But it is not a problem with the original code, which works as intended. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc Make the rules? I don't make the rules. I don't even FOLLOW the rules!
Technical Details
Message-ID:
<8qdibr$549g$1@newssvr06-en0.news.prodigy.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!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: <8qdibr$549g$1@newssvr06-en0.news.prodigy.com> Subject: Re: Got it! ckpasswd -f bug (INN 2.3.0) Date: Thu, 21 Sep 2000 00:00:00 +0000 From: davidsen@tmr.com (bill davidsen) 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!not-for-mail X-Deja-AN: 672539389 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr06-en0.news.prodigy.com 969559227 168240 192.168.190.236 (21 Sep 2000 18:00:27 GMT) Organization: TMR Associates, Schenectady NY NNTP-Posting-Date: Thu, 21 Sep 2000 18:00:27 +0000 (UTC) Newsgroups: news.software.nntp Originator: davidsen@darkstar.prodigy.com