]> granicus.if.org Git - shadow/commit
* lib/defines.h: Define USER_NAME_MAX_LENGTH, based on utmp and
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Wed, 22 Apr 2009 20:42:48 +0000 (20:42 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Wed, 22 Apr 2009 20:42:48 +0000 (20:42 +0000)
commit3704745289f58d10cbeb1bde26849989487e66f1
tree3f26bb4baf7c380972707c5f642220094250d74f
parenteae8b63d4f7fc0494ec754749f7b68525b53324e
* lib/defines.h: Define USER_NAME_MAX_LENGTH, based on utmp and
default to 32.
* libmisc/chkname.c: Use USER_NAME_MAX_LENGTH.
* src/login.c: Use USER_NAME_MAX_LENGTH instead of the default 32.
username also needs to be bigger than USER_NAME_MAX_LENGTH because
it has to be nul-terminated.
ChangeLog
lib/defines.h
libmisc/chkname.c
src/login.c