2
Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
2
Copyright (c) 1990-2007 Info-ZIP. All rights reserved.
4
4
See the accompanying file LICENSE, version 2000-Apr-09 or later
5
5
(the contents of which are also included in unzip.h) for terms of use.
888
/* skip restoring time stamps on user's request */
889
if (uO.D_flag <= 1) {
888
890
#ifdef USE_EF_UT_TIME
890
892
#ifdef IZ_CHECK_TZ
893
(ef_scan_for_izux(G.extra_field, G.lrec.extra_field_length, 0,
894
G.lrec.last_mod_dos_datetime, &z_utime, NULL)
897
TTrace((stderr, "close_outfile: Unix e.f. modif. time = %ld\n",
899
m_time = z_utime.mtime;
895
(ef_scan_for_izux(G.extra_field, G.lrec.extra_field_length, 0,
896
G.lrec.last_mod_dos_datetime, &z_utime, NULL)
899
TTrace((stderr, "close_outfile: Unix e.f. modif. time = %ld\n",
901
m_time = z_utime.mtime;
901
903
#endif /* USE_EF_UT_TIME */
902
m_time = dos_to_unix_time(G.lrec.last_mod_dos_datetime);
904
m_time = dos_to_unix_time(G.lrec.last_mod_dos_datetime);
904
/* set the file's modification time */
907
/* set the file's time-stamp and attributes */
905
908
SWI_OS_File_5(G.filename, NULL, &loadaddr, NULL, NULL, &attr);
907
uxtime2acornftime(&execaddr, &loadaddr, m_time);
911
/* set the file's modification time */
912
uxtime2acornftime(&execaddr, &loadaddr, m_time);
909
914
loadaddr = (loadaddr & 0xfff000ffU) |
910
915
((G.pInfo->file_attr&0xfff00000) >> 12);