]> Zhao Yanbai Git Server - minix.git/commitdiff
libvboxfs: fix setting file mtimes
authorDavid van Moolenbroek <david@minix3.org>
Tue, 16 Oct 2012 21:11:30 +0000 (23:11 +0200)
committerDavid van Moolenbroek <david@minix3.org>
Wed, 17 Oct 2012 21:01:24 +0000 (23:01 +0200)
lib/libvboxfs/attr.c

index ba3662cc404eb53b4ea820128b1873ae967f5d5b..6017748a84eda3d369993192e467f433044c790c 100644 (file)
@@ -154,7 +154,7 @@ vboxfs_setattr(char *path, struct sffs_attr *attr)
        info.atime = (attr->a_mask & SFFS_ATTR_ATIME) ?
            set_time(&attr->a_atime) : 0;
        info.mtime = (attr->a_mask & SFFS_ATTR_MTIME) ?
-           set_time(&attr->a_ctime) : 0;
+           set_time(&attr->a_mtime) : 0;
        info.ctime = (attr->a_mask & SFFS_ATTR_CTIME) ?
            set_time(&attr->a_ctime) : 0;
        info.crtime = (attr->a_mask & SFFS_ATTR_CRTIME) ?