chpass(1) patch for changing only crypted passwords

Dmitry Morozovsky marck at rinet.ru
Tue Sep 26 03:50:32 PDT 2006


On Tue, 26 Sep 2006, Dag-Erling Sm?rgrav wrote:

DS> Dmitry Morozovsky <marck at 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 at 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 at rinet.ru ***
------------------------------------------------------------------------


More information about the freebsd-stable mailing list