VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/CommandLineInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main/CommandLineInterface.cpp')
-rw-r--r--src/Main/CommandLineInterface.cpp23
1 files changed, 16 insertions, 7 deletions
diff --git a/src/Main/CommandLineInterface.cpp b/src/Main/CommandLineInterface.cpp
index 735cbeef..2d38a5bd 100644
--- a/src/Main/CommandLineInterface.cpp
+++ b/src/Main/CommandLineInterface.cpp
@@ -6,3 +6,3 @@
Modifications and additions to the original source code (contained in this file)
- and all other portions of this file are Copyright (c) 2013-2017 IDRIX
+ and all other portions of this file are Copyright (c) 2013-2025 IDRIX
and are governed by the Apache License 2.0 the full text of which is
@@ -34,5 +34,6 @@ namespace VeraCrypt
ArgUseLegacyPassword (false),
-#if defined(TC_LINUX ) || defined (TC_FREEBSD)
ArgUseDummySudoPassword (false),
-#endif
+#if defined(TC_UNIX)
+ ArgAllowInsecureMount (false),
+ #endif
StartBackgroundTask (false)
@@ -57,3 +58,4 @@ namespace VeraCrypt
parser.AddSwitch (L"", L"delete-token-keyfiles", _("Delete security token keyfiles"));
- parser.AddSwitch (L"d", L"dismount", _("Dismount volume"));
+ parser.AddSwitch (L"d", L"dismount", _("Unmount volume (deprecated: use 'unmount')"));
+ parser.AddSwitch (L"u", L"unmount", _("Unmount volume"));
parser.AddSwitch (L"", L"display-password", _("Display password while typing"));
@@ -63,3 +65,3 @@ namespace VeraCrypt
parser.AddOption (L"", L"filesystem", _("Filesystem type"));
- parser.AddSwitch (L"f", L"force", _("Force mount/dismount/overwrite"));
+ parser.AddSwitch (L"f", L"force", _("Force mount/unmount/overwrite"));
#if !defined(TC_WINDOWS) && !defined(TC_MACOSX)
@@ -112,2 +114,5 @@ namespace VeraCrypt
#endif
+#if defined(TC_UNIX)
+ parser.AddSwitch (L"", L"allow-insecure-mount", _("Allow mounting volumes on mount points that are in the user's PATH"));
+#endif
wxString str;
@@ -220,3 +225,3 @@ namespace VeraCrypt
- if (parser.Found (L"dismount"))
+ if (parser.Found (L"unmount") || parser.Found (L"dismount"))
{
@@ -377,3 +382,3 @@ namespace VeraCrypt
ArgDisableFileSizeCheck = parser.Found (L"no-size-check");
- ArgUseLegacyPassword = parser.Found (L"legacy-password-maxlength");
+ ArgUseLegacyPassword = parser.Found (L"legacy-password-maxlength");
#if defined(TC_LINUX ) || defined (TC_FREEBSD)
@@ -382,2 +387,6 @@ namespace VeraCrypt
+#if defined(TC_UNIX)
+ ArgAllowInsecureMount = parser.Found (L"allow-insecure-mount");
+#endif
+
#if !defined(TC_WINDOWS) && !defined(TC_MACOSX)