From 54d8ae4c335c21290dc41e5ba4701b3c19bba601 Mon Sep 17 00:00:00 2001 From: dec05eba <0xdec05eba@gmail.com> Date: Sat, 28 Apr 2018 10:44:11 +0200 Subject: Add decryption (and caching) of data, even when adding encryption key after data has been added --- src/FileUtils.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/FileUtils.cpp') 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); -- cgit v1.2.3