I just commited changes to four files:
sys/sys/param.h
lib/libc/gen/getpwent.c
lib/libc/gen/pwcache.c
usr.bin/login/login.c
these changes replace UT_NAMESIZE with MAXLOGNAME in a number of
places and to increase MAXLOGNAME to 16 from 12. Jason Thorpe
approved this change.
As a result of this change, login names up to 15 characters long
should now work. I have been running with this change for at least
six months with no obvious ill effects.
It appears from reading the getgrent.c source that there is no
equivalent limit on group name lengths but I haven't get attempted to
create a long-named group.
Note that entries in utmp still get truncated to UT_NAMESIZE;
increasing that limit will be non-trivial.
- Bill