From edc9f36322e44bc0b164cf27ca03cf970ef48091 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 31 May 2014 23:09:24 +0200 Subject: Replace TrueCrypt references in added sources and resources by VeraCrypt ones. --- src/Core/Unix/CoreService.cpp | 2 +- src/Core/Unix/CoreUnix.cpp | 4 ++-- src/Core/Unix/Linux/CoreLinux.cpp | 4 ++-- src/Core/Unix/MacOSX/CoreMacOSX.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Core/Unix') diff --git a/src/Core/Unix/CoreService.cpp b/src/Core/Unix/CoreService.cpp index 0ec636c7..9d2fd2a4 100644 --- a/src/Core/Unix/CoreService.cpp +++ b/src/Core/Unix/CoreService.cpp @@ -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)); diff --git a/src/Core/Unix/CoreUnix.cpp b/src/Core/Unix/CoreUnix.cpp index 89f34e20..41ebe969 100644 --- a/src/Core/Unix/CoreUnix.cpp +++ b/src/Core/Unix/CoreUnix.cpp @@ -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"; } diff --git a/src/Core/Unix/Linux/CoreLinux.cpp b/src/Core/Unix/Linux/CoreLinux.cpp index 634a3a23..777ccb77 100644 --- a/src/Core/Unix/Linux/CoreLinux.cpp +++ b/src/Core/Unix/Linux/CoreLinux.cpp @@ -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; diff --git a/src/Core/Unix/MacOSX/CoreMacOSX.h b/src/Core/Unix/MacOSX/CoreMacOSX.h index eee11d6f..37ebd1d6 100644 --- a/src/Core/Unix/MacOSX/CoreMacOSX.h +++ b/src/Core/Unix/MacOSX/CoreMacOSX.h @@ -22,7 +22,7 @@ namespace TrueCrypt virtual void CheckFilesystem (shared_ptr mountedVolume, bool repair = false) const; virtual shared_ptr DismountVolume (shared_ptr 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; -- cgit v1.2.3