Date: Sat, 1 Mar 1997 16:22:46 +1100 From: David Nugent <davidn@labs.usn.blaze.net.au> To: Marc Slemko <marcs@znep.com> Cc: current@freebsd.org Subject: Re: size of L_cuserid in -current Message-ID: <19970301162246.10505@usn.blaze.net.au> In-Reply-To: <Pine.BSF.3.95.970228180723.18933B-100000@alive.znep.com>; from Marc Slemko on Feb 02, 1997 at 07:24:04PM References: <Pine.BSF.3.95.970228180723.18933B-100000@alive.znep.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 02, 1997 at 07:24:04PM, Marc Slemko wrote: > From what I see, L_cuserid in sys/include/stdio.h is set to 9 in -current. > The comment says UT_NAMESIZE + 1. UT_NAMESIZE is 16. Are there other > broken things that are holding back the change or am I missing something? I have no idea what it is used for. It'd be useful if it was a real maximum though, since it would conveniently negate the need to use UT_NAMESIZE/utmp.h and MAXLOGNAME (which only need be large enough, but must only be > maximum). The real maximum is the lesser of both, after adjusting MAXLOGNAME to include the NUL (the real maximum in -current is therefore 15 characters, not 16). > What I have noticed has been changed in -current to deal with long > usernames: > > - UT_NAMESIZE in utmp.h > - bugfix in getty/main.c > - off-by-one in kern/kern_prot.c > - MAXLOGNAME in param.h > - e_spare[4] -> 3 in user.h > - adduser/rmuser > - w > - rwho > - finger/sprint.c > - last atrun.c There's one more userland change in the queue (not yet committed), but I can't remember what it is off-hand. I should be committing it in the next couple of days. Regards, David Nugent - Unique Computing Pty Ltd - Melbourne, Australia Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970301162246.10505>