mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Linux/FreeBSD: Add CLI switch to force use of old sudo behavior of sending a dummy password
The new switch is --use-dummy-sudo-password
This commit is contained in:
@@ -534,6 +534,10 @@ namespace VeraCrypt
|
||||
Core->SetAdminPasswordCallback (shared_ptr <GetStringFunctor> (new AdminPasswordRequestHandler));
|
||||
}
|
||||
|
||||
#if defined(TC_LINUX ) || defined (TC_FREEBSD)
|
||||
Core->ForceUseDummySudoPassword (CmdLine->ArgUseDummySudoPassword);
|
||||
#endif
|
||||
|
||||
Core->WarningEvent.Connect (EventConnector <UserInterface> (this, &UserInterface::OnWarning));
|
||||
Core->VolumeMountedEvent.Connect (EventConnector <UserInterface> (this, &UserInterface::OnVolumeMounted));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user