struct logininfo (loginrec.h) defines LINFO_NAMESIZE to 64. The call to strlcpy on loginrec.c line 357 will truncate the 64th character. When a user logs in with a username of exactly 64 characters, the following error message is displayed: login_init_entry: Cannot find user "testlengthtestlengthtestlengthtestlengthtestlengthtestlengthtes"
Created attachment 739 [details] One-line change. Unit tested on Linux. 65 probably would have worked, I added 8 to keep the alignment of subsequent fields.
Comment on attachment 739 [details] One-line change. Unit tested on Linux. Seems reasonable to me, all of the references in loginrec.c are limited by sizeof(li->username). Objections?
I think we should probably round it up to the nearest power of two, but I agree: ok.
Thanks, applied (increased to 128 bytes).
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.