Skip to content
Snippets Groups Projects

Issue #3363938: Package Manager should ignore default.settings.php and default.services.yml

Merged Issue #3363938: Package Manager should ignore default.settings.php and default.services.yml
1 unresolved thread
1 unresolved thread
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -90,8 +90,8 @@ class SiteConfigurationExcluder implements EventSubscriberInterface {
* The event being handled.
*
* @throws \Drupal\Core\File\Exception\FileException
* If the permissions of the either the live or staged `sites/default`
* cannot be determined, or cannot be changed on the staged `sites/default`.
* If the permissions of either the live or staged `sites/default` cannot
* be determined, or cannot be changed on the staged `sites/default`.
*/
public function syncDefaultSiteDirectoryPermissions(PreApplyEvent $event): void {
$staged_dir = $this->getDefaultSiteDirectoryPath($event->stage->getStageDirectory());
@@ -104,7 +104,7 @@ class SiteConfigurationExcluder implements EventSubscriberInterface {
// This is borrowed from \Symfony\Component\Filesystem\Filesystem::copy(),
// to ensure the correct permissions are preserved (chmod() requires
// permissions to be sent as an octal number, but fileperms() returns a
// decimal number, because PHP is just great.
// decimal number, because PHP is just great).
$permissions = $this->getPermissions($staged_dir) | ($this->getPermissions($live_dir) & 0111);
if (!$this->fileSystem->chmod($staged_dir, $permissions)) {
Loading