diff options
-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; } |