aboutsummaryrefslogtreecommitdiff
path: root/src/FileUtils.cpp
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-04-28 10:44:11 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-04-28 10:44:22 +0200
commit54d8ae4c335c21290dc41e5ba4701b3c19bba601 (patch)
treef381e10e071e1800e8e5ca69701fe25e58dbd837 /src/FileUtils.cpp
parent166e132873fccf62327d2190fe1d827d89a5db63 (diff)
Add decryption (and caching) of data, even when adding encryption key after data has been added
Diffstat (limited to 'src/FileUtils.cpp')
-rw-r--r--src/FileUtils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/FileUtils.cpp b/src/FileUtils.cpp
index 3a78a63..6dc10b8 100644
--- a/src/FileUtils.cpp
+++ b/src/FileUtils.cpp
@@ -22,6 +22,7 @@ namespace odhtdb
throw FileException(errMsg);
}
+ flockfile(file);
fseek(file, 0, SEEK_END);
size_t fileSize = ftell(file);
fseek(file, 0, SEEK_SET);