Somethings still up with new NSS?

Terry Lambert tlambert2 at mindspring.com
Tue Apr 29 12:14:42 PDT 2003


Dag-Erling Smorgrav wrote:
> "Jacques A. Vidrine" <nectar at FreeBSD.org> writes:
> > But, if you run `pwd_mkdb -u' BEFORE you rebuild the entire database
> > with plain `pwd_mkdb', the database will have version 3 entries for
> > all of your users, but only a version 4 entry for the single target
> > user.  Old binaries still function fine, but new binaries now `see'
> > that the database supports the new version 4 entries.  So, only the
> > single user that was updated is recognized.
> 
> Why do new binaries ignore the older version 3 entries?

Because the file might have been transferred from another machine,
and have the wrong byte-order for the current machine in the version
3 entries.  The version 4 entries are portable, so they don't have
this problem.

It probably would have been better to just put a per record byte
order maker in there, instead of using a version number, but you
would still have the same problem for the records without the
marker, so you'd have to ignore them as "suspect".

-- Terry


More information about the freebsd-current mailing list