diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2002-01-09 12:23:27 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2002-01-09 12:23:27 +0000 |
commit | 4b2bef463b46effc57a87f3c7a9cbc5a70602668 (patch) | |
tree | 7570fe5c664ba14d4749d03b3d2852ef60317a25 /lib/fuse.c | |
parent | 46a46dc82273cb42747e3897d39e1a926f875c2e (diff) | |
download | libfuse-4b2bef463b46effc57a87f3c7a9cbc5a70602668.tar.gz |
fixes
Diffstat (limited to 'lib/fuse.c')
-rw-r--r-- | lib/fuse.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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)); } |