summaryrefslogtreecommitdiff
path: root/KeyStorage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'KeyStorage.cpp')
-rw-r--r--KeyStorage.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/KeyStorage.cpp b/KeyStorage.cpp
index fb94ae51..457bb667 100644
--- a/KeyStorage.cpp
+++ b/KeyStorage.cpp
@@ -661,6 +661,7 @@ bool storeKeyAtomically(const std::string& key_path, const std::string& tmp_path
PLOG(ERROR) << "Unable to move new key to location: " << key_path;
return false;
}
+ if (!FsyncParentDirectory(key_path)) return false;
LOG(DEBUG) << "Created key: " << key_path;
return true;
}