Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83]) by krbdev.mit.edu (8.9.3) with ESMTP id WAA21438; Mon, 16 Jun 2003 22:43:57 -0400 (EDT) Received: from bunyip.cc.uq.edu.au (bunyip.cc.uq.edu.au [130.102.2.1]) by pacific-carrier-annex.mit.edu (8.12.4/8.9.2) with ESMTP id h5H2htv8006242 for ; Mon, 16 Jun 2003 22:43:56 -0400 (EDT) Received: from localhost (shrimpto@localhost [127.0.0.1]) by bunyip.cc.uq.edu.au (8.12.9/8.12.9) with ESMTP id h5H2hrhq011866 for ; Tue, 17 Jun 2003 12:43:54 +1000 (GMT+1000) Date: Tue, 17 Jun 2003 12:43:53 +1000 (GMT+1000) From: Dave Shrimpton X-Sender: To: Subject: Patch for minor kadmin bug in 1.2.8 and earlier Message-Id: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-RT-Original-Encoding: us-ascii Content-Length: 1224 Hi, Minor bug fix for kadmin in 1.2.8 in diff -c format. /* Our timezone GMT+1000 manages to squeeze the year %Y out of the 30 char limit in array 'out' in kadmin.c eg when dates displayed in kadmin get "Fri Jan 11 17:47:46 GMT+1000 " and not "Fri Jan 11 17:47 GMT+1000 2015" You'll only notice this if your kadmin is displaying times in a local timezone and not GMT or EST */ *** kadmin.c.dist Fri Oct 12 11:52:33 2001 --- kadmin.c Tue Jun 17 11:59:18 2003 *************** *** 122,132 **** krb5_timestamp when; { struct tm *tm; ! static char out[30]; time_t lcltim = when; tm = localtime(&lcltim); ! strftime(out, 30, "%a %b %d %H:%M:%S %Z %Y", tm); return out; } --- 122,132 ---- krb5_timestamp when; { struct tm *tm; ! static char out[36]; time_t lcltim = when; tm = localtime(&lcltim); ! strftime(out, 36, "%a %b %d %H:%M:%S %Z %Y", tm); return out; } -- David Shrimpton Systems Programmer Software Infrastructure, Information Technology Services University of Qld 4072 shrimpto@its.uq.edu.au Brisbane Australia Phone 61 7 3365 7408