From owner-freebsd-current Fri Feb 28 21:23:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA10919 for current-outgoing; Fri, 28 Feb 1997 21:23:22 -0800 (PST) Received: from labs.usn.blaze.net.au (labs.usn.blaze.net.au [203.17.53.30]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA10914 for ; Fri, 28 Feb 1997 21:23:16 -0800 (PST) Received: (from davidn@localhost) by labs.usn.blaze.net.au (8.8.5/8.8.5) id QAA04653; Sat, 1 Mar 1997 16:22:48 +1100 (EST) Message-ID: <19970301162246.10505@usn.blaze.net.au> Date: Sat, 1 Mar 1997 16:22:46 +1100 From: David Nugent To: Marc Slemko Cc: current@freebsd.org Subject: Re: size of L_cuserid in -current References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61 In-Reply-To: ; from Marc Slemko on Feb 02, 1997 at 07:24:04PM Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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/