[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: crypt() woes - error in man page?



Peter Jay Salzman (p@belial.ucdavis.edu) said:
> i think there's an error in the man page for crypt()...
> 
> 	usage: char *crypt(const char *key, const char *salt);

[snip]

> 		char *pass1 = crypt(salt1, key);
> 		char *pass2 = crypt(salt2, key);

should be:
 		char *pass1 = crypt(key, salt1);
 		char *pass2 = crypt(key, salt2);

.adam

-- 
[                <adam@lazur.org> <laz@clustermonkey.org>                ]
[              icq #3354423 | lazur.org | clustermonkey.org              ]



Reply to: