Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 96 13:48 MSZ
From:      me@tartufo.muc.ditec.de (Michael Elbel)
To:        justin@cyburbia.bns.com.au
Cc:        ports@freebsd.org
Subject:   Re: Spinner under FreeBSD
Message-ID:  <m0u1ti0-000Pa6C@tartufo.muc.ditec.de>
References:  <199603201939.AA22947@Sisyphos> <Pine.BSF.3.91.960321210824.9844F-100000@cyburbia.bns.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
In lists.freebsd.ports you write:


>Uh huh ... well, if I can get hold of your port I'll have a shot at it 
>with that ... otherwise I might go and try some of the older betas or the 
>very-beta (shudder) release :)

There was a patch posted on the spinner mailing list that fixes the
MD5 problem:

--- builtin_efuns.c.orig	Wed Nov 15 12:54:55 1995
+++ builtin_efuns.c	Wed Mar 20 11:00:05 1996
@@ -736,6 +736,7 @@
 {
   char salt[2];
   char *ret;
+  char *saltp;
   char *choise =
     "cbhisjKlm4k65p7qrJfLMNQOPxwzyAaBDFgnoWXYCZ0123tvdHueEGISRTUV89./";
 
@@ -752,17 +753,17 @@
        sp[1-args].u.string->len < 2)
       error("Bad argument 2 to crypt()\n");
       
-    salt[0] = sp[1-args].u.string->str[0];
-    salt[1] = sp[1-args].u.string->str[1];
+    saltp = sp[1-args].u.string->str;
   } else {
     salt[0] = choise[my_rand()%strlen(choise)];
     salt[1] = choise[my_rand()%strlen(choise)];
+    saltp = salt;
   }
 #ifdef HAVE_CRYPT
-  ret = (char *)crypt(sp[-args].u.string->str, salt);
+  ret = (char *)crypt(sp[-args].u.string->str, saltp);
 #else
 #ifdef HAVE__CRYPT
-  ret = (char *)_crypt(sp[-args].u.string->str, salt);
+  ret = (char *)_crypt(sp[-args].u.string->str, saltp);
 #else
   ret = sp[-args].u.string->str;
 #endif


-- 
Michael Elbel, DITEC, Muenchen, Germany - me@muc.ditec.de
Fermentation fault (coors dumped)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0u1ti0-000Pa6C>