hgfs: fix atime/mtime attribute setting bug

Reported and investigated by Antoine Leca.
This commit is contained in:
David van Moolenbroek
2011-12-23 19:02:57 +01:00
parent 80b03d929d
commit 3e46876a73
3 changed files with 8 additions and 4 deletions

View File

@@ -157,7 +157,8 @@ PUBLIC int do_utime()
if ((r = verify_inode(ino, path, NULL)) != OK)
return r;
attr.a_mask = HGFS_ATTR_ATIME | HGFS_ATTR_MTIME;
attr.a_mask = HGFS_ATTR_ATIME | HGFS_ATTR_MTIME | HGFS_ATTR_ATIME_SET |
HGFS_ATTR_MTIME_SET;
attr.a_atime = m_in.REQ_ACTIME;
attr.a_mtime = m_in.REQ_MODTIME;