Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2006 14:50:21 +0400 (MSD)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= <des@des.no>
Cc:        stable@freebsd.org
Subject:   Re: chpass(1) patch for changing only crypted passwords
Message-ID:  <20060926144706.R25959@woozle.rinet.ru>
In-Reply-To: <86lko7q86b.fsf@dwp.des.no>
References:  <20060925114102.F79983@woozle.rinet.ru> <868xk8tjfy.fsf@dwp.des.no> <20060925214730.R752@woozle.rinet.ru> <86lko7q86b.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 26 Sep 2006, Dag-Erling Sm?rgrav wrote:

DS> Dmitry Morozovsky <marck@rinet.ru> writes:
DS> > BTW, a question inspired by ru@: why pw_equal() skips password
DS> > field? Its interface is unpublished, and the only consumers are
DS> >
DS> > marck@woozle:/lh/src.current> grep -Rl pw_equal .
DS> > ./lib/libutil/libutil.h
DS> > ./lib/libutil/pw_util.c
DS> > ./release/picobsd/tinyware/passwd/pw_copy.c
DS> > ./usr.bin/chpass/chpass.c
DS> >
DS> > and tyniware is false alarm ;)
DS> 
DS> IIRC, pw_equal() was originally intended for locating the entry to
DS> replace when changing the password...

Ah yes, pw_copy() uses it internally, and seems to have to skip password field 
checking.


Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



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