cvs diff: Diffing .
cvs diff: Diffing engines
Index: engines/file.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cacherouter/engines/file.php,v
retrieving revision 1.1.2.10
diff -u -p -r1.1.2.10 file.php
--- engines/file.php	2 Feb 2009 10:41:44 -0000	1.1.2.10
+++ engines/file.php	22 Jun 2009 08:11:40 -0000
@@ -97,6 +97,7 @@ class fileCache extends Cache {
         // only write to the cache file if we can obtain an exclusive lock
         if (flock($fp, LOCK_EX)) {
           fwrite($fp, $data);
+          chmod($file, 0777);
           flock($fp, LOCK_UN);
         }
         fclose($fp);
@@ -215,7 +216,7 @@ class fileCache extends Cache {
             drupal_set_message(strtr('Failed to create directory %dir.', array('%dir' => "<em>$dir</em>")));
           }
           else {
-            @chmod($subdirectory, 0775); // Necessary for non-webserver users.
+            @chmod($dir, 0777); // Necessary for non-webserver users.
           }
         }
       }
cvs diff: Diffing images
cvs diff: Diffing tests
