fix futimes version of utimes wrapper

This commit is contained in:
Antonio SJ Musumeci 2016-09-13 21:30:45 -04:00
parent a575cf76c2
commit 0395e7c776

View File

@ -25,8 +25,8 @@ namespace fs
{
struct timeval times[2];
TIMESPEC_TO_TIMEVAL(&times[0],&st.st_atimespec);
TIMESPEC_TO_TIMEVAL(&times[1],&st.st_mtimespec);
TIMESPEC_TO_TIMEVAL(&times[0],&st.st_atim);
TIMESPEC_TO_TIMEVAL(&times[1],&st.st_mtim);
return ::futimes(fd,times);
}