From 4714925452878a75d8239f765e82ea08997bf478 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Fri, 20 Feb 2009 18:53:12 +0000 Subject: [PATCH] * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime in struct stat. --- bfd/ChangeLog | 5 +++++ bfd/vmsutil.c | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 55f1c73e5b0..32ae0d89dc1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-02-20 Cary Coutant + + * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime + in struct stat. + 2009-18-02 Dave Korn PR gas/7059 diff --git a/bfd/vmsutil.c b/bfd/vmsutil.c index 83c4609df41..ff4383a86e2 100644 --- a/bfd/vmsutil.c +++ b/bfd/vmsutil.c @@ -237,16 +237,13 @@ vms_file_stats_name (const char *filename, return 0; #else struct stat buff; - struct tm *ts; if ((stat (filename, &buff)) != 0) return 1; if (cdt) { - ts = localtime (&buff.st_mtime); - *cdt = (long long) ((buff.st_mtim.tv_sec * VMS_GRANULARITY_FACTOR) - + (buff.st_mtim.tv_nsec / 100)) + *cdt = (long long) (buff.st_mtime * VMS_GRANULARITY_FACTOR) + VMS_EPOCH_OFFSET; } -- 2.30.2