pmt: Fixup backup function

This commit is contained in:
2025-09-07 21:55:53 +03:00
parent 9625bf6df0
commit de1cb5dd5a

View File

@@ -68,7 +68,7 @@ RUN_ASYNC(const std::string &partitionName, const std::string &outputName,
false}; false};
const int ffd = Helper::openAndAddToCloseList( const int ffd = Helper::openAndAddToCloseList(
outputName, collector, O_WRONLY | O_CREAT | O_TRUNC); outputName, collector, O_WRONLY | O_CREAT | O_TRUNC, 0644);
if (ffd < 0) if (ffd < 0)
return {format("Can't create/open output file %s: %s", outputName.data(), return {format("Can't create/open output file %s: %s", outputName.data(),
strerror(errno)), strerror(errno)),