summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ifuse.c')
-rw-r--r--src/ifuse.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index 900bb17..f33eaaa 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -52,13 +52,12 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) {
file = afc_get_file_info(afc, path);
if (!file){
res = -ENOENT;
- return res;
+ } else {
+ stbuf->st_mode = file->type | 0444;
+ stbuf->st_size = file->size;
+ //stbuf->st_nlink = 2;
}
- stbuf->st_mode = file->type | 0444;
- stbuf->st_size = file->size;
- //stbuf->st_nlink = 2;
-
return res;
}