Browse Source

Merge pull request #315 from trapexit/futimes

fix futimes version of utimes wrapper
pull/316/head
Antonio SJ Musumeci 8 years ago
committed by GitHub
parent
commit
fa3218cb72
  1. 4
      src/fs_time_futimes.icpp

4
src/fs_time_futimes.icpp

@ -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);
}

Loading…
Cancel
Save