silverstripe-framework/core
Sam Minnee 5779097939 NEW: Move temp data into a user-specific subfolder, to stop temp-permission bugs from occurring.
Anyone who has run "sudo -u www-data ./framework/sake dev/build" knows that SilverStripe's temp
folder permissions can be very brittle.  This patch resolves this by making the temp folder
user-specific.

To minimise directory pollution it first creates a chmod 777 parent folder with the same name
as the current folder.  It then creates a subfolder of this with the same name as the current
user.

The positive impact of this change is that sake can be used without fear of messing up file
permissions.  This means, among other things, that we can put a Composer post-update-cmd into
the installer to run dev/build.  Progress!

The negative impact is that you will get two caches if you run sake as a different user.  However,
that is much better than the current situation - which is a bunch of bugs - and if you're concerned
about that, you still have the option of running sake as www-data.
2013-03-24 18:39:50 +13:00
..
manifest Merge pull request #1321 from silverstripe-rebelalliance/feature/config 2013-03-22 02:25:54 -07:00
ArrayLib.php Add codesniffer that ensures indentation is with tabs. 2012-12-12 17:33:31 +13:00
ClassInfo.php Removing ClassInfo::is_subclass_of(), use is_subclass_of() instead 2012-11-15 14:43:13 +13:00
Config.php FIX SplFixedArray causes segfaults in old versions of PHP 2013-03-18 10:22:11 +13:00
Convert.php Use preg_replace_callback over preg_replace with e modifier 2012-12-20 13:40:42 +13:00
Core.php Require Config.php in core to avoid fatal errors when building manifest 2013-03-20 14:45:43 +01:00
DAG.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
Diff.php API Make HTMLValue replace-able via DI 2013-03-14 12:49:02 +13:00
Extension.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
HTMLCleaner.php API Make HTMLValue replace-able via DI 2013-03-14 12:49:02 +13:00
Object.php Merge pull request #1322 from ajshort/pulls/class-spec-parsing 2013-03-21 21:20:35 -07:00
PaginatedList.php Merge remote-tracking branch 'origin/3.0' into 3.1 2013-01-21 11:14:57 +01:00
TempPath.php NEW: Move temp data into a user-specific subfolder, to stop temp-permission bugs from occurring. 2013-03-24 18:39:50 +13:00