diff --git a/checkin_notes b/checkin_notes index 569b615c13..2de345b9c9 100644 --- a/checkin_notes +++ b/checkin_notes @@ -3021,3 +3021,9 @@ David April 2 2008 sched/ server_types.C + +David April 2 2008 + - server: when creating log dir, we were using wrong bit for sticky flag + + sched/ + sched_util.C diff --git a/sched/sched_util.C b/sched/sched_util.C index c6cd9dd975..5c47ddb842 100644 --- a/sched/sched_util.C +++ b/sched/sched_util.C @@ -129,7 +129,7 @@ void get_log_path(char* p, const char* filename) { sprintf(dir, "../log_%s", host); sprintf(p, "%s/%s", dir, filename); mode_t old_mask = umask(0); - mkdir(dir, 02770); + mkdir(dir, 01770); // make log_x directory sticky and group-rwx // so that whatever apache puts there will be owned by us umask(old_mask);