Permalink
Browse files

adding umask to file so cache files will be created without throwing …

…an error when transitioning from shell to browser

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7763 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information...
1 parent f861d68 commit f9f1c4df5071c9ca68dd397a22f95082a2df0691 gwoo committed Oct 18, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 cake/libs/file.php
View
@@ -119,7 +119,9 @@ function __destruct() {
function create() {
$dir = $this->Folder->pwd();
if (is_dir($dir) && is_writable($dir) && !$this->exists()) {
+ $old = umask(0);
if (touch($this->pwd())) {
+ umask($old);
return true;
}
}

0 comments on commit f9f1c4d

Please sign in to comment.