1
0
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:
Mounir IDRASSI
2014-05-31 23:09:24 +02:00
parent 34370b9933
commit edc9f36322
31 changed files with 842 additions and 603 deletions

View File

@@ -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));

View File

@@ -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";
}

View File

@@ -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;

View File

@@ -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;