From c91ce44a645754a9ecd28d1114784c19555901f5 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 8 May 1998 23:52:49 +0000 Subject: [PATCH] * kadm_server.c (krb_log): Print the year using 4 digit to avoid Y2K issues. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10556 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/v4server/ChangeLog | 5 +++++ src/kadmin/v4server/kadm_server.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/kadmin/v4server/ChangeLog b/src/kadmin/v4server/ChangeLog index d4c952cc4..5ced9eb32 100644 --- a/src/kadmin/v4server/ChangeLog +++ b/src/kadmin/v4server/ChangeLog @@ -1,3 +1,8 @@ +1998-05-08 Theodore Ts'o + + * kadm_server.c (krb_log): Print the year using 4 digit to avoid + Y2K issues. + 1998-05-06 Theodore Ts'o * admin_server.c (argv): POSIX states that getopt returns -1 diff --git a/src/kadmin/v4server/kadm_server.c b/src/kadmin/v4server/kadm_server.c index 18e5981d4..e84e0b7a7 100644 --- a/src/kadmin/v4server/kadm_server.c +++ b/src/kadmin/v4server/kadm_server.c @@ -105,8 +105,8 @@ static void krb_log(format,a1,a2,a3,a4,a5,a6,a7,a8,a9,a0) (void) time(&now); tm = localtime(&now); - fprintf(logfile,"%2d-%s-%02d %02d:%02d:%02d ",tm->tm_mday, - month_sname(tm->tm_mon + 1),tm->tm_year, + fprintf(logfile,"%2d-%s-%d %02d:%02d:%02d ",tm->tm_mday, + month_sname(tm->tm_mon + 1),1900+tm->tm_year, tm->tm_hour, tm->tm_min, tm->tm_sec); fprintf(logfile,format,a1,a2,a3,a4,a5,a6,a7,a8,a9,a0); fprintf(logfile,"\n"); -- 2.26.2