From: Stig Bakken Date: Fri, 3 May 2002 00:01:54 +0000 (+0000) Subject: * apply umask when installing files X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~280 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a74e4300119adff3a3af0b470aab571b796eca2;p=php * apply umask when installing files --- 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");