*BSD News Article 37577


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!news.sprintlink.net!news.indirect.com!wes
From: wes@indirect.com (Barnacle Wes)
Subject: Re: Bug in libcrypt.a on NetBSD 1.0?
Message-ID: <CyrvKo.DJz@indirect.com>
Sender: usenet@indirect.com (System Operator)
Organization: Internet Direct, indirect.com
Date: Sat, 5 Nov 1994 02:14:47 GMT
References: <HILDEKCA.94Nov4095109@shorty.eng.umd.edu>
X-Newsreader: TIN [version 1.2 PL2]
Lines: 15

Kevin Hildebrand (hildekca@eng.umd.edu) wrote:
: It seems that crypt() doesn't work correctly with non-alphanumeric
: salts.

It's not supposed to!  From the crypt(3) man page:

	The first argument to crypt() is  normally  a  user's  typed
	password.   The  second  is a 2-character string chosen from
	the set [a-zA-Z0-9./].

I believe your example salt contained a '$', which is not in the crypt
alphabet.


	Wes Peters