summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ifuse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index 7c510e2..cefa66c 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -215,6 +215,8 @@ static int ifuse_getattr(const char *path, struct stat *stbuf)
}
} else if (!strcmp(info[i], "st_nlink")) {
stbuf->st_nlink = atoi(info[i+1]);
+ } else if (!strcmp(info[i], "st_mtime")) {
+ stbuf->st_mtime = (time_t)(atoll(info[i+1]) / 1000000000);
}
}
free_dictionary(info);