summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2009-01-29 13:23:26 +0100
committerJeremy Allison <jra@samba.org>2009-01-29 09:51:36 -0800
commit12f57f95b504af63634978e6faabb9a1859a4e82 (patch)
tree67a2fca8a213205adce3f9a944c2c682bb02b84c
parent3639e525a92c1c91dd8d6f9286f1da4a33ee7656 (diff)
downloadsamba-12f57f95b504af63634978e6faabb9a1859a4e82.tar.gz
samba-12f57f95b504af63634978e6faabb9a1859a4e82.tar.bz2
samba-12f57f95b504af63634978e6faabb9a1859a4e82.zip
setting mtime setted atime on BSD systems, fix this
-rw-r--r--source3/lib/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/time.c b/source3/lib/time.c
index 1466471639..d3b85433ea 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