From d021ce48ab5e32a1bf783b007cf656565d7eb6d8 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Sat, 3 Jun 2006 23:04:18 +0000 Subject: [PATCH] fix emergency unmount in helper.c --- ChangeLog | 5 +++++ lib/helper.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 041dfcb..d8369ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-04 Csaba Henk + + * 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 * 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; } -- 2.30.2