diff options
author | Csaba Henk <csaba.henk@creo.hu> | 2006-06-03 23:04:18 +0000 |
---|---|---|
committer | Csaba Henk <csaba.henk@creo.hu> | 2006-06-03 23:04:18 +0000 |
commit | d021ce48ab5e32a1bf783b007cf656565d7eb6d8 (patch) | |
tree | c6b14269a30a0e1ad756f9fd18604140c5c5c8d6 | |
parent | 4f5c7b45d55a074d238d1052e4a55485d91b5987 (diff) | |
download | libfuse-d021ce48ab5e32a1bf783b007cf656565d7eb6d8.tar.gz |
fix emergency unmount in helper.c
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/helper.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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; } |