From: Sam Hartman Date: Mon, 5 Mar 2001 10:42:09 +0000 (+0000) Subject: 2001-03-05 Sam Hartman X-Git-Tag: krb5-1.3-alpha1~1644 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b16144a37e7a0f57c470dd7b7cfd471e55763143;p=krb5.git 2001-03-05 Sam Hartman * kuserok.c: Set max_username to 65 not 10. 65 should be enough for a null terminated string from most current Unixes usernames. The previous limit of 10 was too low. I don't know how the previous limit was chosen nor why this is not a dynamic buffer. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13054 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 6dcd9a462..acfbdf5b1 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,10 @@ +2001-03-05 Sam Hartman + + * kuserok.c: Set max_username to 65 not 10. 65 should be enough + for a null terminated string from most current Unixes usernames. + The previous limit of 10 was too low. I don't know how the + previous limit was chosen nor why this is not a dynamic buffer. + 2001-03-05 Tom Yu * init_os_ctx.c: Get sys/ioctl.h for Solaris to get FIONBIO. diff --git a/src/lib/krb5/os/kuserok.c b/src/lib/krb5/os/kuserok.c index 6d2adb126..bf3c2968b 100644 --- a/src/lib/krb5/os/kuserok.c +++ b/src/lib/krb5/os/kuserok.c @@ -38,7 +38,7 @@ #define getpwnam(user) getpwnam((char *)user) #endif -#define MAX_USERNAME 10 +#define MAX_USERNAME 65 /* * Given a Kerberos principal "principal", and a local username "luser",