Print 4 digit years in Krb4 log entries to avoid Y2K issues
authorTheodore Tso <tytso@mit.edu>
Fri, 8 May 1998 22:48:16 +0000 (22:48 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 8 May 1998 22:48:16 +0000 (22:48 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10555 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/ChangeLog
src/kdc/kerberos_v4.c

index 614a095a4140f0cf0e181cb741ead51bf62ab5c8..193202828dc88233aa765c58eca6596c7adc93a4 100644 (file)
@@ -1,3 +1,8 @@
+Fri May  8 18:46:59 1998  Theodore Y. Ts'o  <tytso@mit.edu>
+
+       * kerberos_v4.c (krb4_stime): Print 4 digit years in Krb4 log
+               entries to avoid Y2K issues.
+
 1998-05-06  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
        * main.c (initialize_realms): POSIX states that getopt returns -1
index c1479d2b364ce82eb33179499d2c5d9185c180f5..f5a3a778953f8f68f0555325fa182b5ba651ba16 100644 (file)
@@ -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;