-
Tue May 16 10:33:03 EDT 1995 Paul Park (pjpark@mit.edu)
* gmt_mktime.c - Use the actual year instead of the number of years
since 1900 when determining if a year has a leapday.
Makes dates after February in the year 2000 correct.
+Mon May 15 05:08:05 1995 <tytso@rsx-11.mit.edu>
+
+ * ktdefname.c (krb5_kt_default_name): Use the KRB5_KTNAME
+ environment variable to override the default location of
+ the keytab.
+
Mon May 8 22:19:23 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* read_pwd.c (krb5_read_password): use volatile on all
char *name;
int namesize;
{
- strncpy(name, krb5_defkeyname, namesize);
- if ((size_t) namesize < strlen(krb5_defkeyname))
- return KRB5_CONFIG_NOTENUFSPACE;
- else
- return 0;
+ char *cp;
+
+ cp = getenv("KRB5_KTNAME");
+ if (cp) {
+ strncpy(name, cp, namesize);
+ if (strlen(cp) >= namesize)
+ return KRB5_CONFIG_NOTENUFSPACE;
+ } else {
+ strncpy(name, krb5_defkeyname, namesize);
+ if ((size_t) namesize < strlen(krb5_defkeyname))
+ return KRB5_CONFIG_NOTENUFSPACE;
+ }
+ return 0;
}