diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-05-09 11:22:41 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-05-09 11:22:41 +0000 |
commit | 21019c96f5f9f8d5f7630acc2e897da077c0f097 (patch) | |
tree | f8f9978086f464f40c62492974c45af608d2e525 /lib | |
parent | 0b9a06efb8fa6fa242a8d7483e596dbd88317377 (diff) | |
download | libfuse-21019c96f5f9f8d5f7630acc2e897da077c0f097.tar.gz |
fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fuse.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1626,7 +1626,7 @@ static int fill_dir_common(struct fuse_dirhandle *dh, const char *name, if (newlen > dh->needlen) return 1; } - + newptr = realloc(dh->contents, newlen); if (!newptr) { dh->error = -ENOMEM; @@ -1805,7 +1805,7 @@ void fuse_process_cmd(struct fuse *f, struct fuse_cmd *cmd) if ((f->flags & FUSE_ALLOW_ROOT) && in->uid != f->owner && in->uid != 0 && in->opcode != FUSE_INIT && in->opcode != FUSE_READ && - in->opcode != FUSE_WRITE && in->opcode != FUSE_FSYNC && + in->opcode != FUSE_WRITE && in->opcode != FUSE_FSYNC && in->opcode != FUSE_RELEASE && in->opcode != FUSE_READDIR && in->opcode != FUSE_FSYNCDIR && in->opcode != FUSE_RELEASEDIR) { send_reply(f, in, -EACCES, NULL, 0); @@ -2199,8 +2199,10 @@ void fuse_destroy(struct fuse *f) for (node = f->id_table[i]; node != NULL; node = node->id_next) { if (node->is_hidden) { char *path = get_path(f, node->nodeid); - if (path) + if (path) { f->op.unlink(path); + free(path); + } } } } |