From 717cca4286ab0033e6ede5fded33d7418789f268 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Mon, 14 Feb 2022 08:38:27 +0100 Subject: Write access for all users to named event files on POSIX --- zencore/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zencore/thread.cpp') diff --git a/zencore/thread.cpp b/zencore/thread.cpp index 1f872afe1..33ea3e95d 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -270,7 +270,7 @@ NamedEvent::NamedEvent(std::string_view EventName) ExtendableStringBuilder<64> EventPath; EventPath << "/tmp/" << EventName; - int Fd = open(EventPath.c_str(), O_RDWR | O_CREAT, 0644); + int Fd = open(EventPath.c_str(), O_RDWR | O_CREAT, 0666); if (Fd < 0) { ThrowLastError(fmt::format("Failed to create '{}' for named event", EventPath)); -- cgit v1.2.3