diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/krb5/os/ChangeLog | 7 | ||||
-rw-r--r-- | src/lib/krb5/os/kuserok.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 6dcd9a4623..acfbdf5b1d 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,10 @@ +2001-03-05 Sam Hartman <hartmans@mit.edu> + + * 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 <tlyu@mit.edu> * 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 6d2adb126e..bf3c2968b9 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", |