setting mtime setted atime on BSD systems, fix this
authorBjörn Jacke <bj@sernet.de>
Thu, 29 Jan 2009 12:23:26 +0000 (13:23 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 29 Jan 2009 17:51:36 +0000 (09:51 -0800)
source3/lib/time.c

index 14664716395f33bb34b7faab160dc0260de9eeb5..d3b85433ea467bb32822789e98e79dd0c96c08b3 100644 (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