From 704abbe97857274b84adc17500d6defca7ffd33b Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 29 Oct 2009 03:37:54 +0100 Subject: ifuse_getattr: add st_mtime support introduced in os 3.1 Signed-off-by: Matt Colyer --- src/ifuse.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.1-32-gdbae