From 26e393c69fc106a2ab6b92e8f74189c2ac6f894d Mon Sep 17 00:00:00 2001 From: Christian Dickmann Date: Tue, 7 Jan 2003 23:12:06 +0000 Subject: [PATCH] fix default umask(); (thx to Mirco MEEBEY Bauer for bringing this behavior to my attention and testing the patch) --- pear/PEAR/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pear/PEAR/Config.php b/pear/PEAR/Config.php index b1292eefeb..28584b9a74 100644 --- a/pear/PEAR/Config.php +++ b/pear/PEAR/Config.php @@ -142,7 +142,7 @@ if (isset($_ENV['PHP_PEAR_PREFERRED_STATE'])) { if (isset($_ENV['PHP_PEAR_UMASK'])) { define('PEAR_CONFIG_DEFAULT_UMASK', $_ENV['PHP_PEAR_UMASK']); } else { - define('PEAR_CONFIG_DEFAULT_UMASK', umask()); + define('PEAR_CONFIG_DEFAULT_UMASK', decoct(umask())); } // Default for cache_ttl -- 2.50.1