Fixed incorrect dates on ntfs volumes (#7120).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40536 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5788aadfe3
commit
ab7d0f0202
@ -660,9 +660,9 @@ fs_rstat(fs_volume *_vol, fs_vnode *_node, struct stat *stbuf)
|
||||
stbuf->st_uid = 0;
|
||||
stbuf->st_gid = 0;
|
||||
stbuf->st_ino = MREF(ni->mft_no);
|
||||
stbuf->st_atime = ni->last_access_time;
|
||||
stbuf->st_ctime = ni->last_mft_change_time;
|
||||
stbuf->st_mtime = ni->last_data_change_time;
|
||||
stbuf->st_atim = ntfs2timespec(ni->last_access_time);
|
||||
stbuf->st_ctim = ntfs2timespec(ni->last_mft_change_time);
|
||||
stbuf->st_mtim = ntfs2timespec(ni->last_data_change_time);
|
||||
|
||||
exit:
|
||||
if (ni)
|
||||
|
Loading…
Reference in New Issue
Block a user