- server: when creating log dir, we were using wrong bit for sticky flag

svn path=/trunk/boinc/; revision=15009
This commit is contained in:
David Anderson 2008-04-02 20:04:06 +00:00
parent 3bb5abf0fa
commit ad4708aec5
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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);