From: relan Date: Sat, 4 Feb 2012 08:07:17 +0000 (+0000) Subject: Fix mtime centiseconds field initialization. X-Git-Tag: android-x86-6.0-r1~189 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d1b19f7a9174181d61ef8b3d0f2c8c8bc16f05d3;p=android-x86%2Fexternal-exfat.git Fix mtime centiseconds field initialization. --- diff --git a/libexfat/node.c b/libexfat/node.c index faf6979..e0d09a5 100644 --- a/libexfat/node.c +++ b/libexfat/node.c @@ -735,8 +735,7 @@ static int write_entry(struct exfat* ef, struct exfat_node* dir, &meta1.crtime_cs); meta1.adate = meta1.mdate = meta1.crdate; meta1.atime = meta1.mtime = meta1.crtime; - /* crtime_cs and mtime_cs contain addition to the time in centiseconds; - just ignore those fields because we operate with 2 sec resolution */ + meta1.mtime_cs = meta1.crtime_cs; /* there is no atime_cs */ memset(&meta2, 0, sizeof(meta2)); meta2.type = EXFAT_ENTRY_FILE_INFO;