aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--project/Makefile2
-rw-r--r--project/dclib/dclib-file.c25
2 files changed, 21 insertions, 6 deletions
diff --git a/project/Makefile b/project/Makefile
index 8d6b2fa..0da2ac0 100644
--- a/project/Makefile
+++ b/project/Makefile
@@ -59,7 +59,7 @@ WSTRT_SHORT = wstrt
WSTRT_LONG = Wiimms StaticR Tool
VERSION_NUM = 2.20a
-BETA_VERSION = 6
+BETA_VERSION = 7
# 0:off -1:"beta" >0:"beta#"
URI_HOME = https://szs.wiimm.de/
diff --git a/project/dclib/dclib-file.c b/project/dclib/dclib-file.c
index 798fd16..cef7add 100644
--- a/project/dclib/dclib-file.c
+++ b/project/dclib/dclib-file.c
@@ -342,18 +342,33 @@ FileAttrib_t * MaxFileAttrib
dest->itime = src_stat->st_ctim;
#else
if ( CompareTimeSpecTime(&dest->atime,src_stat->st_atime) > 0 )
- dest->atime = src_stat->st_atim;
+ {
+ dest->atime.tv_sec = src_stat->st_atime;
+ dest->atime.tv_nsec = 0;
+ }
if ( CompareTimeSpecTime(&dest->mtime,src_stat->st_mtime) > 0 )
- dest->mtime = src_stat->st_mtim;
+ {
+ dest->mtime.tv_sec = src_stat->st_mtime;
+ dest->mtime.tv_nsec = 0;
+ }
if ( CompareTimeSpecTime(&dest->ctime,src_stat->st_ctime) > 0 )
- dest->ctime = src_stat->st_ctim;
+ {
+ dest->ctime.tv_sec = src_stat->st_ctime;
+ dest->ctime.tv_nsec = 0;
+ }
if ( CompareTimeSpecTime(&dest->itime,src_stat->st_mtime) > 0 )
- dest->itime = src_stat->st_mtim;
+ {
+ dest->itime.tv_sec = src_stat->st_mtime;
+ dest->itime.tv_nsec = 0;
+ }
if ( CompareTimeSpecTime(&dest->itime,src_stat->st_ctime) > 0 )
- dest->itime = src_stat->st_ctim;
+ {
+ dest->itime.tv_sec = src_stat->st_ctime;
+ dest->itime.tv_nsec = 0;
+ }
#endif
if ( dest->size < src_stat->st_size )