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) {
52 file = afc_get_file_info(afc, path); 52 file = afc_get_file_info(afc, path);
53 if (!file){ 53 if (!file){
54 res = -ENOENT; 54 res = -ENOENT;
55 return res; 55 } else {
56 stbuf->st_mode = file->type | 0444;
57 stbuf->st_size = file->size;
58 //stbuf->st_nlink = 2;
56 } 59 }
57 60
58 stbuf->st_mode = file->type | 0444;
59 stbuf->st_size = file->size;
60 //stbuf->st_nlink = 2;
61
62 return res; 61 return res;
63} 62}
64 63