mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-23 07:02:41 +02:00
Set correct binary file permission
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user