summaryrefslogtreecommitdiff
path: root/lib/fstree/node_stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fstree/node_stat.c')
-rw-r--r--lib/fstree/node_stat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/fstree/node_stat.c b/lib/fstree/node_stat.c
index 8f62a0f..a28cae8 100644
--- a/lib/fstree/node_stat.c
+++ b/lib/fstree/node_stat.c
@@ -13,6 +13,9 @@ void fstree_node_stat(fstree_t *fs, tree_node_t *node, struct stat *sb)
sb->st_nlink = 1;
sb->st_uid = node->uid;
sb->st_gid = node->gid;
+ sb->st_mtime = node->mod_time;
+ sb->st_atime = node->mod_time;
+ sb->st_ctime = node->mod_time;
switch (node->mode & S_IFMT) {
case S_IFDIR: