* ar.c (extract_file): Set atime to mtime for ar xo.

This commit is contained in:
Jakub Jelinek 2004-10-26 08:08:21 +00:00
parent fcf640ecb2
commit b3f21e4a58
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2004-10-26 Jakub Jelinek <jakub@redhat.com>
* ar.c (extract_file): Set atime to mtime for ar xo.
2004-10-25 Ian Lance Taylor <ian@wasabisystems.com>
* stabs.c (stab_demangle_v3_arglist): New static function, broken

View file

@ -935,7 +935,12 @@ extract_file (bfd *abfd)
chmod (bfd_get_filename (abfd), buf.st_mode);
if (preserve_dates)
{
/* Set access time to modification time. Only st_mtime is
initialized by bfd_stat_arch_elt. */
buf.st_atime = buf.st_mtime;
set_times (bfd_get_filename (abfd), &buf);
}
free (cbuf);
}