fixes
diff --git a/lib/fuse.c b/lib/fuse.c
index 88f3eae..63dadf5 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -548,7 +548,7 @@
free(path);
}
link[PATH_MAX] = '\0';
- send_reply(f, in, res, link, !res ? strlen(link) : 0);
+ send_reply(f, in, res, link, res == 0 ? strlen(link) : 0);
}
static void do_getdir(struct fuse *f, struct fuse_in_header *in)
@@ -812,8 +812,9 @@
res = -ENOSYS;
if(f->op.statfs)
res = f->op.statfs(&sbuf);
- if(!res)
+ if(res == 0)
convert_statfs(&sbuf,&arg.st);
+
send_reply(f, in, res, &arg, sizeof(arg));
}