aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCsaba Henk <csaba.henk@creo.hu>2006-06-03 23:04:18 +0000
committerCsaba Henk <csaba.henk@creo.hu>2006-06-03 23:04:18 +0000
commitd021ce48ab5e32a1bf783b007cf656565d7eb6d8 (patch)
treec6b14269a30a0e1ad756f9fd18604140c5c5c8d6
parent4f5c7b45d55a074d238d1052e4a55485d91b5987 (diff)
downloadlibfuse-d021ce48ab5e32a1bf783b007cf656565d7eb6d8.tar.gz
fix emergency unmount in helper.c
-rw-r--r--ChangeLog5
-rw-r--r--lib/helper.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 041dfcb..d8369ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-04 Csaba Henk <csaba.henk@creo.hu>
+
+ * lib: fix emergency umount in helper.c when malloc fails.
+ (The way it was done would end up in a segfault.)
+
2006-06-01 Csaba Henk <csaba.henk@creo.hu>
* lib: adjust threading related compiler flags.
diff --git a/lib/helper.c b/lib/helper.c
index bcdd60b..7f8ffa5 100644
--- a/lib/helper.c
+++ b/lib/helper.c
@@ -195,7 +195,7 @@ static struct fuse_chan *fuse_mount_common(const char *mountpoint,
ch = fuse_kern_chan_new(fd);
if (!ch)
- fuse_unmount(mountpoint, NULL);
+ fuse_kern_unmount(mountpoint, fd);
return ch;
}