From 9a54c476eb9dc3f97722b3c146538f4a1e09a9b4 Mon Sep 17 00:00:00 2001 From: Derrick Nelson Date: Mon, 9 Sep 2013 21:03:49 -0400 Subject: [PATCH] Recursively set write permissions on unzipped package contents to resolve cache unlinking issue. --- src/Composer/Downloader/ZipDownloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Downloader/ZipDownloader.php b/src/Composer/Downloader/ZipDownloader.php index c2394543d..71958948d 100644 --- a/src/Composer/Downloader/ZipDownloader.php +++ b/src/Composer/Downloader/ZipDownloader.php @@ -38,7 +38,7 @@ class ZipDownloader extends ArchiveDownloader // try to use unzip on *nix if (!defined('PHP_WINDOWS_VERSION_BUILD')) { - $command = 'unzip '.escapeshellarg($file).' -d '.escapeshellarg($path); + $command = 'unzip '.escapeshellarg($file).' -d '.escapeshellarg($path) . ' && chmod -R u+w ' . escapeshellarg($path); if (0 === $this->process->execute($command, $ignoredOutput)) { return; }