1 From 533d064ce028a7ebd0ef3a845cb69f10ca04b09f Mon Sep 17 00:00:00 2001
2 From: Jente Hidskes Ankarberg <jente@griffin.sh>
3 Date: Fri, 17 Feb 2023 00:07:20 +0100
4 Subject: [PATCH 2/2] fix open with O_CREAT
7 fdbbackup/FileDecoder.actor.cpp | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
10 diff --git fdbbackup/FileDecoder.actor.cpp fdbbackup/FileDecoder.actor.cpp
11 index 71f693259..547147ea0 100644
12 --- a/fdbbackup/FileDecoder.actor.cpp
13 +++ b/fdbbackup/FileDecoder.actor.cpp
14 @@ -433,7 +433,7 @@ public:
15 platform::createDirectory(path);
18 - self->lfd = open(self->file.fileName.c_str(), O_WRONLY | O_CREAT | O_TRUNC);
19 + self->lfd = open(self->file.fileName.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0600);
20 if (self->lfd == -1) {
21 TraceEvent(SevError, "OpenLocalFileFailed").detail("File", self->file.fileName);
22 throw platform_error();