diff --git a/libfuse/lib/fuse.c b/libfuse/lib/fuse.c index a0c033d3..56cc34db 100644 --- a/libfuse/lib/fuse.c +++ b/libfuse/lib/fuse.c @@ -1299,8 +1299,11 @@ void unlink_node(struct fuse *f, struct node *node) { - assert(node->nlookup > 1); - node->nlookup--; + if(remember_nodes(f)) + { + assert(node->nlookup > 1); + node->nlookup--; + } unhash_name(f,node); }