VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Core
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-08-07 13:15:23 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-08-07 14:10:27 +0200
commit7d39e836553d662b877655d2ef72e133a0d7ec74 (patch)
treeafbed135316265ab2c29a63358d8b13e19cb2593 /src/Core
parent847da0ccdfddf1f79f53d26711b75c65248a3061 (diff)
downloadVeraCrypt-7d39e836553d662b877655d2ef72e133a0d7ec74.tar.gz
VeraCrypt-7d39e836553d662b877655d2ef72e133a0d7ec74.zip
Linux: Fix detection of available filesystem formatters
Diffstat (limited to 'src/Core')
-rw-r--r--src/Core/VolumeCreator.h12
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)
{
}