]> Raphaƫl G. Git Repositories - veranda/blob - patch/worldwritabledisabled.patch
Update symlinks
[veranda] / patch / worldwritabledisabled.patch
1 diff -urNp vendor/symfony/runtime/GenericRuntime.php.orig vendor/symfony/runtime/GenericRuntime.php
2 --- vendor/symfony/runtime/GenericRuntime.php.orig 2024-02-28 08:17:06.517219812 +0100
3 +++ vendor/symfony/runtime/GenericRuntime.php 2024-02-28 08:17:10.497255989 +0100
4 @@ -69,7 +69,7 @@ class GenericRuntime implements RuntimeI
5 }
6
7 if ($debug) {
8 - umask(0000);
9 + umask(0022);
10 $_SERVER[$debugKey] = $_ENV[$debugKey] = '1';
11
12 if (false !== $errorHandler = ($options['error_handler'] ?? BasicErrorHandler::class)) {
13 diff -urNp vendor/symfony/filesystem/Filesystem.php.orig vendor/symfony/filesystem/Filesystem.php
14 --- vendor/symfony/filesystem/Filesystem.php.orig 2024-02-28 08:17:21.597356872 +0100
15 +++ vendor/symfony/filesystem/Filesystem.php 2024-02-28 08:17:34.497474117 +0100
16 @@ -205,7 +205,7 @@ class Filesystem
17 *
18 * @throws IOException When the change fails
19 */
20 - public function chmod(string|iterable $files, int $mode, int $umask = 0000, bool $recursive = false): void
21 + public function chmod(string|iterable $files, int $mode, int $umask = 0022, bool $recursive = false): void
22 {
23 foreach ($this->toIterable($files) as $file) {
24 if (!self::box('chmod', $file, $mode & ~$umask)) {