fix
diff --git a/ChangeLog b/ChangeLog
index b7105be..04e84c5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,9 @@
* Add POSIX file locking operation to high level library
+ * Initialize context for unlink of hidden files on umount. Bug
+ reported by Tim Stoakes
+
2006-07-14 Miklos Szeredi <miklos@szeredi.hu>
* Multiple release() calls can race with each other, resulting in
diff --git a/lib/fuse.c b/lib/fuse.c
index 4f7a175..00f34fb 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -2176,6 +2176,12 @@
void fuse_destroy(struct fuse *f)
{
size_t i;
+ struct fuse_context *c = fuse_get_context();
+
+ memset(c, 0, sizeof(*c));
+ c->fuse = f;
+ c->private_data = f->user_data;
+
for (i = 0; i < f->id_table_size; i++) {
struct node *node;