From 0e2c2639d6f9ac7b09c93550f9bfa03fdb734eef Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Fri, 3 Dec 2010 08:24:45 +1300 Subject: [PATCH 1/1] yaffs: Fix current time setting As pointed out by Marcin Slusarz, the current time was not being set correctly. Signed-off-by: Charles Manning --- yaffs_attribs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yaffs_attribs.c b/yaffs_attribs.c index aaf4685..241c08a 100644 --- a/yaffs_attribs.c +++ b/yaffs_attribs.c @@ -39,9 +39,9 @@ void yaffs_load_current_time(struct yaffs_obj *obj, int do_a, int do_c) { obj->yst_mtime = Y_CURRENT_TIME; if (do_a) - obj->yst_atime = obj->yst_atime; + obj->yst_atime = obj->yst_mtime; if (do_c) - obj->yst_ctime = obj->yst_atime; + obj->yst_ctime = obj->yst_mtime; } void yaffs_attribs_init(struct yaffs_obj *obj, u32 gid, u32 uid, u32 rdev) -- 2.30.2