summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2002-05-27 21:59:19 +0000
committerStig Bakken <ssb@php.net>2002-05-27 21:59:19 +0000
commit731f6a2a97f17fb3a8e95858b75fb6e5d2f4e5f7 (patch)
tree49c98d7245186d3562305576147b835dad759b92
parent216986ff42b5646c6d7ec6038ef8e2fb8e9e0d01 (diff)
downloadphp-git-731f6a2a97f17fb3a8e95858b75fb6e5d2f4e5f7.tar.gz
* treat umask as octal in "config-set" command
-rw-r--r--pear/PEAR/Command/Config.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/pear/PEAR/Command/Config.php b/pear/PEAR/Command/Config.php
index 47fe111e91..ff429e85d1 100644
--- a/pear/PEAR/Command/Config.php
+++ b/pear/PEAR/Command/Config.php
@@ -154,6 +154,9 @@ displays help for all configuration parameters.
$failmsg .= $error;
break;
}
+ if ($params[0] == 'umask') {
+ list($params[1]) = sscanf($params[1], '%o');
+ }
if (!call_user_func_array(array(&$this->config, 'set'), $params))
{
$failmsg = "config-set (" . implode(", ", $params) . ") failed";