mirror of
https://github.com/vgough/encfs.git
synced 2024-11-25 01:13:12 +01:00
Bug when mountpoint is not empty with -i option
When user attempts to mount in a mountpoint that is not empty and added -i option, encfs exits with coredump SIGSEGV. With -i option, encfs needs also to check that fuse_main returned 0.
This commit is contained in:
parent
c444f9b917
commit
1cbc1e34f9
@ -818,7 +818,10 @@ int main(int argc, char *argv[]) {
|
|||||||
RLOG(ERROR) << "Internal error: Caught unexpected exception";
|
RLOG(ERROR) << "Internal error: Caught unexpected exception";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->args->idleTimeout > 0) {
|
// We need to check if returnCode is equal to EXIT_SUCCESS
|
||||||
|
// when directory is mounted, because if we do not check and
|
||||||
|
// user added -i option, it will exit with coredump SIGSEGV.
|
||||||
|
if (ctx->args->idleTimeout > 0 && returnCode == EXIT_SUCCESS) {
|
||||||
ctx->running = false;
|
ctx->running = false;
|
||||||
// wake up the thread if it is waiting..
|
// wake up the thread if it is waiting..
|
||||||
VLOG(1) << "waking up monitoring thread";
|
VLOG(1) << "waking up monitoring thread";
|
||||||
|
Loading…
Reference in New Issue
Block a user