VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Core/Unix/CoreUnix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Core/Unix/CoreUnix.cpp')
-rw-r--r--src/Core/Unix/CoreUnix.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Core/Unix/CoreUnix.cpp b/src/Core/Unix/CoreUnix.cpp
index 0b248fb9..258979b9 100644
--- a/src/Core/Unix/CoreUnix.cpp
+++ b/src/Core/Unix/CoreUnix.cpp
@@ -22,9 +22,6 @@
#include "Driver/Fuse/FuseService.h"
#include "Volume/VolumePasswordCache.h"
-template<typename T>
-inline void ignore_result(const T & /* unused result */) {}
-
namespace VeraCrypt
{
#ifdef TC_LINUX
@@ -694,7 +691,7 @@ namespace VeraCrypt
{
try
{
- ignore_result(chown (mountPoint.c_str(), GetRealUserId(), GetRealGroupId()));
+ throw_sys_sub_if (chown (mountPoint.c_str(), GetRealUserId(), GetRealGroupId()) == -1, mountPoint);
} catch (...) { }
}
}