gah!
please wrap your lines at 72 chars.
I don't take the hassle to reformat your message so I can quote proper now.

On Tue, Apr 16, 2002 at 01:41:37PM -0400, Mike Lichtenwalner wrote:
> The passwords are all in crypt format but some of them begin with {crypt} 
> and others begin with {CRYPT}.

totally untested:

--- checkpassword.c.o2  Tue Apr 16 19:49:12 2002
+++ checkpassword.c     Tue Apr 16 19:50:25 2002
@@ -347,7 +347,7 @@
        int  shift;
        
        if (encrypted[0] == '{') { /* hashed */
-               if (!str_diffn("{crypt}", encrypted, 7) ) {
+               if (!str_diffn("{crypt}", encrypted, 7) || !str_diffn("{CRYPT}", 
+encrypted, 7) ) {
                        /* CRYPT */
                        shift = 7;
                        str_copy(hashed, crypt(clear, encrypted+shift) );


-- 
| Henning Brauer  | PGP-Key: http://misc.bsws.de/hb/pubkey.asc          
| BS Web Services | Roedingsmarkt 14, 20459 Hamburg, DE | http://bsws.de
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)

Reply via email to