fuse_session_unmount(): fix unmounting as root
authorNikolaus Rath <Nikolaus@rath.org>
Tue, 4 Oct 2016 17:55:12 +0000 (10:55 -0700)
committerNikolaus Rath <Nikolaus@rath.org>
Tue, 4 Oct 2016 17:55:12 +0000 (10:55 -0700)
commitc889148d35bf308954ba93d56cd416388f0e37a1
treec41eb01f70daf8403c96dc2397686e25f283fcd6
parent5698ee09cf7a8495da70659ffae1eaec9f57db27
fuse_session_unmount(): fix unmounting as root

We have to store the channel before removing it from the session,
otherwise we cannot use it to do the unmount.

This problem was introduced in commit 5698ee09cf7.

Thanks to Michael Theall for reporting & debugging this.
lib/fuse_lowlevel.c