* vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
in struct stat.
This commit is contained in:
parent
5aca5a820a
commit
4714925452
@ -1,3 +1,8 @@
|
|||||||
|
2009-02-20 Cary Coutant <ccoutant@google.com>
|
||||||
|
|
||||||
|
* vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
|
||||||
|
in struct stat.
|
||||||
|
|
||||||
2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
|
2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
|
||||||
|
|
||||||
PR gas/7059
|
PR gas/7059
|
||||||
|
@ -237,16 +237,13 @@ vms_file_stats_name (const char *filename,
|
|||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
struct stat buff;
|
struct stat buff;
|
||||||
struct tm *ts;
|
|
||||||
|
|
||||||
if ((stat (filename, &buff)) != 0)
|
if ((stat (filename, &buff)) != 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
if (cdt)
|
if (cdt)
|
||||||
{
|
{
|
||||||
ts = localtime (&buff.st_mtime);
|
*cdt = (long long) (buff.st_mtime * VMS_GRANULARITY_FACTOR)
|
||||||
*cdt = (long long) ((buff.st_mtim.tv_sec * VMS_GRANULARITY_FACTOR)
|
|
||||||
+ (buff.st_mtim.tv_nsec / 100))
|
|
||||||
+ VMS_EPOCH_OFFSET;
|
+ VMS_EPOCH_OFFSET;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user