From owner-freebsd-arch@FreeBSD.ORG Wed Apr 9 16:29:30 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA24C37B401 for ; Wed, 9 Apr 2003 16:29:30 -0700 (PDT) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4435743FA3 for ; Wed, 9 Apr 2003 16:29:30 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0163.cvx22-bradley.dialup.earthlink.net ([209.179.198.163] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 193P0A-0003VA-00; Wed, 09 Apr 2003 16:29:10 -0700 Message-ID: <3E94AC5B.1B93F2FB@mindspring.com> Date: Wed, 09 Apr 2003 16:27:23 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Jake Burkholder References: <31398.1049876261@critter.freebsd.dk> <20030409130718.GF78831@locore.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a475268a311e27c18d334c8bd86d18ff9f548b785378294e88350badd9bab72f9c350badd9bab72f9c cc: arch@freebsd.org cc: Poul-Henning Kamp Subject: Re: endianess of /etc/pwd.db X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2003 23:29:31 -0000 Jake Burkholder wrote: > Apparently, On Wed, Apr 09, 2003 at 10:17:41AM +0200, > Poul-Henning Kamp said words to the effect of; > > 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. > > Yes, please. Sendmail databases have the same problem (mkdb). Might want to coordinate with those people, if they already have a solution, or if you really want to create a general solution (FWIW). -- Terry