From: Theodore Tso Date: Fri, 8 May 1998 22:48:16 +0000 (+0000) Subject: Print 4 digit years in Krb4 log entries to avoid Y2K issues X-Git-Tag: krb5-1.1-beta1~731 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=707ae3607b32b8afadd54144e6257ae01d45cce6;p=krb5.git Print 4 digit years in Krb4 log entries to avoid Y2K issues git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10555 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index 614a095a4..193202828 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,8 @@ +Fri May 8 18:46:59 1998 Theodore Y. Ts'o + + * kerberos_v4.c (krb4_stime): Print 4 digit years in Krb4 log + entries to avoid Y2K issues. + 1998-05-06 Theodore Ts'o * main.c (initialize_realms): POSIX states that getopt returns -1 diff --git a/src/kdc/kerberos_v4.c b/src/kdc/kerberos_v4.c index c1479d2b3..f5a3a7789 100644 --- a/src/kdc/kerberos_v4.c +++ b/src/kdc/kerberos_v4.c @@ -904,7 +904,7 @@ static char *krb4_stime(t) adjusted_time = *t /* - CONVERT_TIME_EPOCH */; tm = localtime(&adjusted_time); - (void) sprintf(st,"%2d-%s-%02d %02d:%02d:%02d",tm->tm_mday, + (void) sprintf(st,"%4d-%s-%02d %02d:%02d:%02d",tm->tm_mday+1900, month_sname(tm->tm_mon + 1),tm->tm_year, tm->tm_hour, tm->tm_min, tm->tm_sec); return st;