diff options
author | Nikias Bassen | 2009-10-29 03:37:54 +0100 |
---|---|---|
committer | Matt Colyer | 2009-10-29 06:54:32 -0700 |
commit | 704abbe97857274b84adc17500d6defca7ffd33b (patch) | |
tree | 680253653fda0845711516ae2a69b9cd09762e64 /src | |
parent | 88f3ce21a3ffb35e97fd9a13e0829d6655a0d17d (diff) | |
download | ifuse-704abbe97857274b84adc17500d6defca7ffd33b.tar.gz ifuse-704abbe97857274b84adc17500d6defca7ffd33b.tar.bz2 |
ifuse_getattr: add st_mtime support introduced in os 3.1
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src')
-rw-r--r-- | src/ifuse.c | 2 |
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); |