refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2024-11-10 16:21:26 -06:00
parent 2c55e243f5
commit 0d5ac30e49
2 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ public:
file_name += std::to_string(++idx); file_name += std::to_string(++idx);
auto file_path = utils::path::combine(mount_location, {file_name}); auto file_path = utils::path::combine(mount_location, {file_name});
auto handle = open(file_path.c_str(), O_CREAT | O_RDWR, perms); auto handle = open(file_path.c_str(), O_CREAT | O_EXCL | O_RDWR, perms);
EXPECT_LE(1, handle); EXPECT_LE(1, handle);
auto opt_size = utils::file::file{file_path}.size(); auto opt_size = utils::file::file{file_path}.size();