From dfc0bb3184fb869cf17034b53a1fe2efef0858d9 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 9 Jun 2009 18:46:47 +0000 Subject: [PATCH] lib: FILE_LOCK::lock() makes lockfile group-writable so both client and manager can create and write it under sandbox security svn path=/trunk/boinc/; revision=18340 --- checkin_notes | 7 +++++++ lib/filesys.cpp | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 519ea8a447..57fa2ffde4 100644 --- a/checkin_notes +++ b/checkin_notes @@ -5205,3 +5205,10 @@ Rom 9 June 2009 lib/ stackwalker_win.cpp + +Charlie 9 June 2009 + - lib: FILE_LOCK::lock() makes lockfile group-writable so both client and + manager can create and write it under sandbox security. + + lib/ + filesys.cpp diff --git a/lib/filesys.cpp b/lib/filesys.cpp index 44b8233d25..2e180ccf47 100644 --- a/lib/filesys.cpp +++ b/lib/filesys.cpp @@ -658,7 +658,7 @@ int FILE_LOCK::lock(const char* filename) { } #else if (fd<0) { - fd = open(filename, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); + fd = open(filename, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH); } if (fd<0) { return ERR_OPEN;