VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-08-07 11:15:23 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-08-07 12:10:27 (GMT)
commit7d39e836553d662b877655d2ef72e133a0d7ec74 (patch)
treeafbed135316265ab2c29a63358d8b13e19cb2593
parent847da0ccdfddf1f79f53d26711b75c65248a3061 (diff)
downloadVeraCrypt-7d39e836553d662b877655d2ef72e133a0d7ec74.zip
VeraCrypt-7d39e836553d662b877655d2ef72e133a0d7ec74.tar.gz
Linux: Fix detection of available filesystem formatters
-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 2295645..77a8e05 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)
{
}