Looking at the source of getspent I see that the password needs to start with
{crypt}. Why is that ? Could a flag be added to assume {crypt} and add if
missing ?
Markus
98 if ((tmp = strstr(passwd[0], "{crypt}")) != NULL ||
99 (tmp = strstr(passwd[0], "{CRYPT}")) != NULL) {
100 if (tmp != passwd[0])
101 pw_passwd = np;
102 else
103 pw_passwd = tmp + strlen("{crypt}");
104 } else {
105 /* Replace it with *NP* */
106 pw_passwd = np;
107 }
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code