Subject: RE: LOGIN_NAME_MAX
To: 'John Nemeth' <jnemeth@victoria.tc.ca>
From: Neil J. McRae <neil@DOMINO.ORG>
List: tech-userlevel
Date: 10/13/2005 11:27:23
>      LOGIN_NAME_MAX is currently defined as:
> 
> ./sys/sys/syslimits.h:#define   LOGIN_NAME_MAX             17 
>   /* max login name length incl. NUL */
> 
> However, our struct utmpx has:
> 
> #define _UTX_USERSIZE   32
> char ut_name[_UTX_USERSIZE];    /* login name */
> 
> Is there a reason that LOGIN_NAME_MAX is only half the size 
> of _UTX_USERSIZE?  I'm thinking of bumping up LOGIN_NAME_MAX 
> and seeing if anything breaks.
> 

I did this a few years ago and it was mostly ok, there was
a few apps that didn't like it but it was fairly minimal. I
raised PRs for the broken apps that I found IIRC.

Regards,
Neil.