From 7bd5a67e723d55454f9384255e58fbe00518baf6 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 27 Jun 2008 04:18:38 +0000 Subject: fix ktutil listing with timestamp ktutil's "list -t" option is supposed to show the timestamp stored in the keytab file. Instead, it shows some random (uninitialized) value, interpreted as a timestamp. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20486 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/ktutil/ktutil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/kadmin/ktutil/ktutil.c b/src/kadmin/ktutil/ktutil.c index e2464e853..1138f0a37 100644 --- a/src/kadmin/ktutil/ktutil.c +++ b/src/kadmin/ktutil/ktutil.c @@ -1,7 +1,7 @@ /* * kadmin/ktutil/ktutil.c * - * Copyright 1995, 1996 by the Massachusetts Institute of Technology. + * Copyright 1995, 1996, 2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -252,6 +252,7 @@ void ktutil_list(argc, argv) char fill; time_t tstamp; + tstamp = lp->entry->timestamp; (void) localtime(&tstamp); lp->entry->timestamp = tstamp; fill = ' '; -- cgit