From: Stig Bakken Date: Mon, 27 May 2002 21:59:19 +0000 (+0000) Subject: * treat umask as octal in "config-set" command X-Git-Tag: NEW_UI_API_BP~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=731f6a2a97f17fb3a8e95858b75fb6e5d2f4e5f7;p=php * treat umask as octal in "config-set" command --- 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";