From: Björn Jacke Date: Thu, 29 Jan 2009 12:23:26 +0000 (+0100) Subject: setting mtime setted atime on BSD systems, fix this X-Git-Tag: samba-4.0.0alpha7~417^2~279 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12f57f95b504af63634978e6faabb9a1859a4e82;p=thirdparty%2Fsamba.git setting mtime setted atime on BSD systems, fix this --- diff --git a/source3/lib/time.c b/source3/lib/time.c index 14664716395..d3b85433ea4 100644 --- a/source3/lib/time.c +++ b/source3/lib/time.c @@ -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