From 05c230754df20d0d4e83ed1e47c2235c67b5afb9 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 3 Jan 2016 09:00:38 +0100 Subject: [PATCH] set default permissions when dumping files --- src/Symfony/Component/Filesystem/Filesystem.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Symfony/Component/Filesystem/Filesystem.php b/src/Symfony/Component/Filesystem/Filesystem.php index 522aacca64eb9..d2e0f29a329d6 100644 --- a/src/Symfony/Component/Filesystem/Filesystem.php +++ b/src/Symfony/Component/Filesystem/Filesystem.php @@ -528,6 +528,7 @@ public function dumpFile($filename, $content) throw new IOException(sprintf('Failed to write file "%s".', $filename), 0, null, $filename); } + $this->chmod($tmpFile, 0666); $this->rename($tmpFile, $filename, true); }