Browse Source

Recursively set write permissions on unzipped package contents to resolve cache unlinking issue.

Derrick Nelson 11 years ago
parent
commit
9a54c476eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Downloader/ZipDownloader.php

+ 1 - 1
src/Composer/Downloader/ZipDownloader.php

@@ -38,7 +38,7 @@ class ZipDownloader extends ArchiveDownloader
 
 
         // try to use unzip on *nix
         // try to use unzip on *nix
         if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
         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)) {
             if (0 === $this->process->execute($command, $ignoredOutput)) {
                 return;
                 return;
             }
             }