X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/veranda/blobdiff_plain/d256b3a1323d1eace43536d6351942b86feaf933..3c6b372596cbe5b4f21cfacf31f06b7bd93abe81:/backup/patch/worldwritabledisabled.patch diff --git a/backup/patch/worldwritabledisabled.patch b/backup/patch/worldwritabledisabled.patch new file mode 100644 index 0000000..2b31734 --- /dev/null +++ b/backup/patch/worldwritabledisabled.patch @@ -0,0 +1,24 @@ +diff -urNp vendor/symfony/runtime/GenericRuntime.php.orig vendor/symfony/runtime/GenericRuntime.php +--- vendor/symfony/runtime/GenericRuntime.php.orig 2024-02-28 08:17:06.517219812 +0100 ++++ vendor/symfony/runtime/GenericRuntime.php 2024-02-28 08:17:10.497255989 +0100 +@@ -69,7 +69,7 @@ class GenericRuntime implements RuntimeI + } + + if ($debug) { +- umask(0000); ++ umask(0022); + $_SERVER[$debugKey] = $_ENV[$debugKey] = '1'; + + if (false !== $errorHandler = ($options['error_handler'] ?? BasicErrorHandler::class)) { +diff -urNp vendor/symfony/filesystem/Filesystem.php.orig vendor/symfony/filesystem/Filesystem.php +--- vendor/symfony/filesystem/Filesystem.php.orig 2024-02-28 08:17:21.597356872 +0100 ++++ vendor/symfony/filesystem/Filesystem.php 2024-02-28 08:17:34.497474117 +0100 +@@ -205,7 +205,7 @@ class Filesystem + * + * @throws IOException When the change fails + */ +- public function chmod(string|iterable $files, int $mode, int $umask = 0000, bool $recursive = false): void ++ public function chmod(string|iterable $files, int $mode, int $umask = 0022, bool $recursive = false): void + { + foreach ($this->toIterable($files) as $file) { + if (!self::box('chmod', $file, $mode & ~$umask)) {