diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2011-01-22 20:32:42 -0500 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2011-01-22 20:32:42 -0500 |
commit | 9476b41fd6f9c8ea05a3a0f28994fceb33210d16 (patch) | |
tree | af4e96d12255b1fe3923e1854322b00b7a27a495 /libarchive/archive_entry_copy_bhfi.c | |
parent | 85a8c85227016804e4453f07278967da2907e2d8 (diff) | |
download | libarchive-9476b41fd6f9c8ea05a3a0f28994fceb33210d16.tar.gz |
On Windows, set 'Creation time' to both birthtime and ctime, because
CRT stat() Microsoft provides set 'Creation time' to st_ctime.
It seems we should do that not to confuse applications about ctime.
SVN-Revision: 2938
Diffstat (limited to 'libarchive/archive_entry_copy_bhfi.c')
-rw-r--r-- | libarchive/archive_entry_copy_bhfi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libarchive/archive_entry_copy_bhfi.c b/libarchive/archive_entry_copy_bhfi.c index 8339032c..c6f9e68b 100644 --- a/libarchive/archive_entry_copy_bhfi.c +++ b/libarchive/archive_entry_copy_bhfi.c @@ -63,6 +63,7 @@ archive_entry_copy_bhfi(struct archive_entry *entry, archive_entry_set_mtime(entry, secs, nsecs); fileTimeToUtc(&bhfi->ftCreationTime, &secs, &nsecs); archive_entry_set_birthtime(entry, secs, nsecs); + archive_entry_set_ctime(entry, secs, nsecs); archive_entry_set_dev(entry, bhfi->dwVolumeSerialNumber); archive_entry_set_ino64(entry, (((int64_t)bhfi->nFileIndexHigh) << 32) + bhfi->nFileIndexLow); |