According to sysconf manual page, _SC_LOGIN_NAME_MAX is the maximum name length, including the terminating null byte.
Take this into account while validating user names.
Also support systems which might have no upper limit or no _SC_LOGIN_NAME_MAX at all.
According to sysconf manual page, _SC_LOGIN_NAME_MAX is the maximum name length, including the terminating null byte. Take this into account while validating user names.
Also support systems which might have no upper limit or no _SC_LOGIN_NAME_MAX at all.