From 1a74e4300119adff3a3af0b470aab571b796eca2 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Fri, 3 May 2002 00:01:54 +0000 Subject: [PATCH] * apply umask when installing files --- pear/PEAR/Installer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index 4b4eb54dc9..92191ee894 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -229,10 +229,10 @@ class PEAR_Installer extends PEAR_Common } if (!OS_WINDOWS) { if ($atts['role'] == 'script') { - $mode = 0755; + $mode = 0777 & ~$this->config->get('umask'); $this->log(2, "+ chmod +x $dest_file"); } else { - $mode = 0644; + $mode = 0666 & ~$this->config->get('umask'); } if (!@chmod($dest_file, $mode)) { $this->log(0, "failed to change mode of $dest_file"); -- 2.50.1