1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 02:58:02 -06:00

Linux: Fix detection of available filesystem formatters

This commit is contained in:
Mounir IDRASSI
2020-08-07 13:15:23 +02:00
parent 847da0ccdf
commit 7d39e83655

View File

@@ -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)
{
}