endianess of /etc/pwd.db

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Apr 28 07:13:48 PDT 2003

In message <20030428120638.GA3289 at madman.celabo.org>, "Jacques A. Vidrine" writ
>On Wed, Apr 09, 2003 at 07:26:20AM -0500, Jacques A. Vidrine wrote:
>> On Wed, Apr 09, 2003 at 10:17:41AM +0200, Poul-Henning Kamp wrote:
>> > 
>> > Kris ran into this problem:  copying a /etc/pwd.db from one endianess
>> > to another gave him really weird uid/gid numbers.
>> > 
>> > The DB code itself is endianess-agnostic, so the first warning one
>> > gets is the weird UID/GID.
>> > 
>> > Should we make the endianess of this file explicit to prevent this
>> > pit-fall for our users ?  The cost would be less than epsilon.
>In case you didn't otherwise notice, this is done.

I could be a bit worried about doubling the size of the file, but for a
transistion period it does make sense.

Great work!

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the freebsd-arch mailing list