1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

setting mtime setted atime on BSD systems, fix this

This commit is contained in:
Björn Jacke 2009-01-29 13:23:26 +01:00 committed by Jeremy Allison
parent 3639e525a9
commit 12f57f95b5

View File

@ -483,8 +483,8 @@ void set_mtimespec(SMB_STRUCT_STAT *pst, struct timespec ts)
#elif defined(HAVE_STAT_ST_MTIME_N)
pst->st_mtime = ts.tv_sec;
pst->st_mtime_n = ts.tv_nsec
#elif defined(HAVE_STAT_ST_ATIMESPEC)
pst->st_atimespec = ts;
#elif defined(HAVE_STAT_ST_MTIMESPEC)
pst->st_mtimespec = ts;
#else
#error CONFIGURE_ERROR_IN_DETECTING_TIMESPEC_IN_STAT
#endif