DEVEL15-bozo-corefile-timestamp-fix-20090216

LICENSE IPL10
FIXES 124340

output y2k-correct corefile names


(cherry picked from commit 846919700b)
This commit is contained in:
Peter Tripician 2009-02-17 04:32:19 +00:00 committed by Derrick Brashear
parent 298e3bde1e
commit 919fac924a

View File

@ -147,7 +147,7 @@ SaveCore(register struct bnode *abnode, register struct bnode_proc
FT_GetTimeOfDay(&Start, 0);
TimeFields = localtime(&Start.tv_sec);
sprintf(FileName, "%s.%d%02d%02d%02d%02d%02d", tbuffer,
TimeFields->tm_year, TimeFields->tm_mon + 1, TimeFields->tm_mday,
TimeFields->tm_year + 1900, TimeFields->tm_mon + 1, TimeFields->tm_mday,
TimeFields->tm_hour, TimeFields->tm_min, TimeFields->tm_sec);
strcpy(tbuffer, FileName);
#endif