Subject: Re: FreeBSD hosted build problem: mtree and user_from_uid()
To: None <current-users@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: current-users
Date: 10/08/2003 14:23:49
On Wed, Oct 08, 2003 at 14:54:08 +1000, Luke Mewburn wrote:
> On Tue, Oct 07, 2003 at 11:17:02PM +0000, Mark Valentine wrote:
> | Looks like I just have one little problem left before I have a successful
> | NetBSD release build on my FreeBSD system (after fixing some bugs in the
> | FreeBSD shell and printf utility to get this far!).
> |
> | I'm doing an unprivileged build, and the symptom is pax bailing out when
> | creating base.tgz due to an unknown user name "ftp".
> |
> | I can isolate the problem as follows:
> |
> | $ nbmtree -C -k all -N /netbsd/i386/etc <<EOF
> | /set type=dir
> | .
> | ./foo uname=named
> | EOF
> | . type=dir
> | ./foo type=dir uname=ftp
> |
> | The user "named" is uid 14 in NetBSD; uid 14 in FreeBSD is user "ftp"...
> |
> | It seems that mtree is linking in its own pwcache_userdb(), but using the
> | host's user_from_uid()! Is this likely to work?!
>
> No FreeBSD's (the host) user_from_uid(3) won't work.
>
> I have no idea why the user_from_uid() in the tools/compat library isn't
> being correctly linked into nbmtree... :(
Hmm, "it used to work". I'll try to look into this soon unless
someone else beats me to it.
SY, Uwe
--
uwe@ptc.spbu.ru | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen