summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2009-10-14 14:00:58 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-15 09:03:39 -0700
commit44db9af90b7280520c1c599d2bf54dd477961948 (patch)
tree0e02631876228de268032ed6946bcb892b8ab8c4 /xlators
parent4203033c2da0598712d34389f8ef5ce8c24334b4 (diff)
storage/posix: Use the right macro to set nsec of mtime in posix_do_utimes
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 296 (handle futimes correctly in FUSE) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=296
Diffstat (limited to 'xlators')
-rw-r--r--xlators/storage/posix/src/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 2d60ca4ea..0f0d500e4 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -490,7 +490,7 @@ posix_do_utimes (xlator_t *this,
tv[0].tv_sec = stbuf->st_atime;
tv[0].tv_usec = ST_ATIM_NSEC (stbuf) / 1000;
tv[1].tv_sec = stbuf->st_mtime;
- tv[1].tv_usec = ST_ATIM_NSEC (stbuf) / 1000;
+ tv[1].tv_usec = ST_MTIM_NSEC (stbuf) / 1000;
ret = utimes (path, tv);