mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Replace TrueCrypt references in added sources and resources by VeraCrypt ones.
This commit is contained in:
@@ -357,7 +357,7 @@ namespace TrueCrypt
|
||||
|
||||
string appPath = request.ApplicationExecutablePath;
|
||||
if (appPath.empty())
|
||||
appPath = "truecrypt";
|
||||
appPath = "veracrypt";
|
||||
|
||||
const char *args[] = { "sudo", "-S", "-p", "", appPath.c_str(), TC_CORE_SERVICE_CMDLINE_OPTION, nullptr };
|
||||
execvp (args[0], ((char* const*) args));
|
||||
|
||||
@@ -210,10 +210,10 @@ namespace TrueCrypt
|
||||
return envPrefix;
|
||||
|
||||
if (FilesystemPath ("/media").IsDirectory())
|
||||
return "/media/truecrypt";
|
||||
return "/media/veracrypt";
|
||||
|
||||
if (FilesystemPath ("/mnt").IsDirectory())
|
||||
return "/mnt/truecrypt";
|
||||
return "/mnt/veracrypt";
|
||||
|
||||
return GetTempDirectory() + "/truecrypt_mnt";
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace TrueCrypt
|
||||
{
|
||||
string devPath = mountedVolume->VirtualDevice;
|
||||
|
||||
if (devPath.find ("/dev/mapper/truecrypt") != 0)
|
||||
if (devPath.find ("/dev/mapper/veracrypt") != 0)
|
||||
throw NotApplicable (SRC_POS);
|
||||
|
||||
size_t devCount = 0;
|
||||
@@ -380,7 +380,7 @@ namespace TrueCrypt
|
||||
}
|
||||
|
||||
stringstream nativeDevName;
|
||||
nativeDevName << "truecrypt" << options.SlotNumber;
|
||||
nativeDevName << "veracrypt" << options.SlotNumber;
|
||||
|
||||
if (nativeDevCount != cipherCount - 1)
|
||||
nativeDevName << "_" << cipherCount - nativeDevCount - 2;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace TrueCrypt
|
||||
|
||||
virtual void CheckFilesystem (shared_ptr <VolumeInfo> mountedVolume, bool repair = false) const;
|
||||
virtual shared_ptr <VolumeInfo> DismountVolume (shared_ptr <VolumeInfo> mountedVolume, bool ignoreOpenFiles = false, bool syncVolumeInfo = false);
|
||||
virtual string GetDefaultMountPointPrefix () const { return "/Volumes/truecrypt"; }
|
||||
virtual string GetDefaultMountPointPrefix () const { return "/Volumes/veracrypt"; }
|
||||
|
||||
protected:
|
||||
virtual void MountAuxVolumeImage (const DirectoryPath &auxMountPoint, const MountOptions &options) const;
|
||||
|
||||
Reference in New Issue
Block a user