mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Linux: Fix detection of available filesystem formatters
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user