aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2002-01-09 12:23:27 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2002-01-09 12:23:27 +0000
commit4b2bef463b46effc57a87f3c7a9cbc5a70602668 (patch)
tree7570fe5c664ba14d4749d03b3d2852ef60317a25 /lib/fuse.c
parent46a46dc82273cb42747e3897d39e1a926f875c2e (diff)
downloadlibfuse-4b2bef463b46effc57a87f3c7a9cbc5a70602668.tar.gz
fixes
Diffstat (limited to 'lib/fuse.c')
-rw-r--r--lib/fuse.c5
1 files changed, 3 insertions, 2 deletions
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 @@ static void do_readlink(struct fuse *f, struct fuse_in_header *in)
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 @@ static void do_statfs(struct fuse *f, struct fuse_in_header *in)
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));
}