mirror of https://github.com/BOINC/boinc.git
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
This commit is contained in:
parent
09a2564058
commit
dfc0bb3184
|
@ -5205,3 +5205,10 @@ Rom 9 June 2009
|
||||||
|
|
||||||
lib/
|
lib/
|
||||||
stackwalker_win.cpp
|
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
|
||||||
|
|
|
@ -658,7 +658,7 @@ int FILE_LOCK::lock(const char* filename) {
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (fd<0) {
|
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) {
|
if (fd<0) {
|
||||||
return ERR_OPEN;
|
return ERR_OPEN;
|
||||||
|
|
Loading…
Reference in New Issue