mirror of https://github.com/BOINC/boinc.git
- user web: when creating cache dir, chmod() so that
protections are right regardless of umask. From Nicolas Alvarez; fixes #344 svn path=/trunk/boinc/; revision=14435
This commit is contained in:
parent
9248b47032
commit
f211caf8ae
|
@ -12438,3 +12438,11 @@ David 21 Dec 2007
|
|||
boinc_api.C
|
||||
sched/
|
||||
delete_file.C
|
||||
|
||||
David 21 Dec 2007
|
||||
- user web: when creating cache dir, chmod() so that
|
||||
protections are right regardless of umask.
|
||||
From Nicolas Alvarez; fixes #344
|
||||
|
||||
html/inc/
|
||||
cache.inc
|
||||
|
|
|
@ -11,11 +11,15 @@ if (function_exists("apache_request_headers")) {
|
|||
// mechanism for caching commonly-accessed pages
|
||||
|
||||
function make_cache_dirs() {
|
||||
if (!@filemtime("../cache")) mkdir("../cache", 0770);
|
||||
if (!@filemtime("../cache")) {
|
||||
mkdir("../cache", 0770);
|
||||
chmod("../cache", 0770);
|
||||
}
|
||||
for ($i=0;$i<256;$i++) {
|
||||
$j=sprintf("%02x",$i);
|
||||
if (!@filemtime("../cache/$j")) {
|
||||
mkdir("../cache/$j", 0770);
|
||||
chmod("../cache/$j", 0770);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue