diff options
Diffstat (limited to 'example/passthrough.c')
-rw-r--r-- | example/passthrough.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/example/passthrough.c b/example/passthrough.c index 22e7083..55f7704 100644 --- a/example/passthrough.c +++ b/example/passthrough.c @@ -284,7 +284,7 @@ static int xmp_open(const char *path, struct fuse_file_info *fi) if (res == -1) return -errno; - close(res); + fi->fh = res; return 0; } @@ -339,11 +339,8 @@ static int xmp_statfs(const char *path, struct statvfs *stbuf) static int xmp_release(const char *path, struct fuse_file_info *fi) { - /* Just a stub. This method is optional and can safely be left - unimplemented */ - (void) path; - (void) fi; + close(fi->fh); return 0; } |