make sure to always call time, ctime, and gmtime with `time_t's.

there were some types (like in lastlog) that we believed to always be
time_t.  this has proven wrong on Solaris 8 in 64-bit mode, where they
are stored as 32-bit quantities but time_t has gone up to 64 bits


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8066 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-03-26 19:46:45 +00:00
parent b46166825c
commit 85ff7204cc
2 changed files with 5 additions and 2 deletions

View File

@@ -620,7 +620,9 @@ cmd
"%s: not a plain file.", $3);
} else {
struct tm *t;
t = gmtime(&stbuf.st_mtime);
time_t st_mtime = stbuf.st_mtime;
t = gmtime(&st_mtime);
reply(213,
"%04d%02d%02d%02d%02d%02d",
t->tm_year + 1900,