From owner-freebsd-current Thu Sep 14 13:42:12 2000 Delivered-To: freebsd-current@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 4F2BB37B422 for ; Thu, 14 Sep 2000 13:42:08 -0700 (PDT) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id QAA15287; Thu, 14 Sep 2000 16:42:00 -0400 (EDT) (envelope-from wollman) Date: Thu, 14 Sep 2000 16:42:00 -0400 (EDT) From: Garrett Wollman Message-Id: <200009142042.QAA15287@khavrinen.lcs.mit.edu> To: Warner Losh Cc: current@FreeBSD.ORG Subject: Re: SMPNG kernel on UP In-Reply-To: <200009141946.NAA98535@harmony.village.org> References: <200009141941.MAA86101@pike.osd.bsdi.com> <200009141946.NAA98535@harmony.village.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < said: > Hmmm, they look good to me. Maybe Mark's system doesn't have group > operator at gid 5. That's one bad thing about the new DEVFS: it > appears to enshrine things like this in the kernel... It would only take a small amount of Makefile magic to fix this... something like: PASSWD?= /etc/passwd GROUP?= /etc/group uidgid.h: ${PASSWD} ${GROUP} perl -ne 'split(/:/); print ("#define\tUID_", uc($_[0]), "\t", \ $_[2], "\n");' ${PASSWD} >${.TARGET} perl -ne 'split(/:/); print ("#define\tGID_", uc($_[0]), "\t", \ $_[2], "\n");' ${GROUP} >>${.TARGET} ...add this to and include "uidgid.h" as necessary in source files. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message