From 52ced2a33c6f3b3fb0f5b7c056dc7fe03f9755b2 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Fri, 17 Apr 2020 12:19:09 +0200 Subject: [PATCH] Set correct binary file permission --- core-buffer/src/BinaryWriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core-buffer/src/BinaryWriter.cpp b/core-buffer/src/BinaryWriter.cpp index ab6a9b7..4adcb37 100644 --- a/core-buffer/src/BinaryWriter.cpp +++ b/core-buffer/src/BinaryWriter.cpp @@ -89,7 +89,8 @@ void BinaryWriter::open_file(const std::string& filename) WriterUtils::create_destination_folder(filename); - output_file_fd_ = ::open(filename.c_str(), O_WRONLY | O_CREAT | O_DSYNC); + output_file_fd_ = ::open(filename.c_str(), O_WRONLY | O_CREAT | O_DSYNC, + S_IRWXU | S_IWUSR | S_IRGRP | S_IWGRP); if (output_file_fd_ < 0) { stringstream err_msg;