diff options
Diffstat (limited to 'src/Core')
-rw-r--r-- | src/Core/VolumeCreator.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Core/VolumeCreator.h b/src/Core/VolumeCreator.h index 22956451..77a8e05a 100644 --- a/src/Core/VolumeCreator.h +++ b/src/Core/VolumeCreator.h @@ -108,6 +108,18 @@ namespace VeraCrypt bRet = true; } + catch (ExecutedProcessFailed& epe) + { + // only permission error is accepted in case of failure of the command + if (epe.GetExitCode () == EPERM || epe.GetExitCode () == EACCES) + bRet = true; + } + catch (SystemException& se) + { + // if a permission error occured, then we consider that the command exists + if (se.GetErrorCode () == EPERM || se.GetErrorCode () == EACCES) + bRet = true; + } catch (exception &e) { } |