From bea2d9fac6f6e286e896ccb7883d0c4077497709 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 8 May 1998 23:55:43 +0000 Subject: [PATCH] Print the year as 4 digits to avoid Y2K problems git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10557 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin.v4/server/ChangeLog | 5 +++++ src/kadmin.v4/server/kadm_server.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/kadmin.v4/server/ChangeLog b/src/kadmin.v4/server/ChangeLog index ba7dd7646..b43d8d5ae 100644 --- a/src/kadmin.v4/server/ChangeLog +++ b/src/kadmin.v4/server/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 when diff --git a/src/kadmin.v4/server/kadm_server.c b/src/kadmin.v4/server/kadm_server.c index e3ad1d619..4dc246a4d 100644 --- a/src/kadmin.v4/server/kadm_server.c +++ b/src/kadmin.v4/server/kadm_server.c @@ -95,8 +95,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