From 77bdbd9cf155020c987df70e33aed2a87f180c8c Mon Sep 17 00:00:00 2001 From: Jeremy Lakeman Date: Tue, 2 Jun 2020 09:35:52 +0930 Subject: [PATCH] Avoid new clang warning --- rhizome_store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhizome_store.c b/rhizome_store.c index 4d050a0f..75bbe275 100644 --- a/rhizome_store.c +++ b/rhizome_store.c @@ -1708,7 +1708,7 @@ static int append_existing_journal_file(struct rhizome_write *write, const rhizo if (!FORM_BLOB_PATH(existing_path, RHIZOME_BLOB_SUBDIR, hashp)) return WHYF("existing path too long?"); - int payloadfd = open(existing_path, O_RDWR, 0664); + int payloadfd = open(existing_path, O_RDWR); if (payloadfd<0){ if (errno != ENOENT) WHYF_perror("Failed to open existing journal payload %s", existing_path);