<<On Thu, 14 Sep 2000 13:46:44 -0600, Warner Losh <[EMAIL PROTECTED]> 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 <bsd.kmod.mk> and include "uidgid.h" as necessary in
source files.


Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
[EMAIL PROTECTED]  | 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to