mirror of https://github.com/BOINC/boinc.git
- server: when creating log dir, we were using wrong bit for sticky flag
svn path=/trunk/boinc/; revision=15009
This commit is contained in:
parent
3bb5abf0fa
commit
ad4708aec5
|
@ -3021,3 +3021,9 @@ David April 2 2008
|
||||||
|
|
||||||
sched/
|
sched/
|
||||||
server_types.C
|
server_types.C
|
||||||
|
|
||||||
|
David April 2 2008
|
||||||
|
- server: when creating log dir, we were using wrong bit for sticky flag
|
||||||
|
|
||||||
|
sched/
|
||||||
|
sched_util.C
|
||||||
|
|
|
@ -129,7 +129,7 @@ void get_log_path(char* p, const char* filename) {
|
||||||
sprintf(dir, "../log_%s", host);
|
sprintf(dir, "../log_%s", host);
|
||||||
sprintf(p, "%s/%s", dir, filename);
|
sprintf(p, "%s/%s", dir, filename);
|
||||||
mode_t old_mask = umask(0);
|
mode_t old_mask = umask(0);
|
||||||
mkdir(dir, 02770);
|
mkdir(dir, 01770);
|
||||||
// make log_x directory sticky and group-rwx
|
// make log_x directory sticky and group-rwx
|
||||||
// so that whatever apache puts there will be owned by us
|
// so that whatever apache puts there will be owned by us
|
||||||
umask(old_mask);
|
umask(old_mask);
|
||||||
|
|
Loading…
Reference in New Issue