]> granicus.if.org Git - php/commitdiff
* treat umask as octal in "config-set" command
authorStig Bakken <ssb@php.net>
Mon, 27 May 2002 21:59:19 +0000 (21:59 +0000)
committerStig Bakken <ssb@php.net>
Mon, 27 May 2002 21:59:19 +0000 (21:59 +0000)
pear/PEAR/Command/Config.php

index 47fe111e9119e53dcac9cdc2f49b595af6b99283..ff429e85d11dbad2d87188a2ec1d9adecbe9c651 100644 (file)
@@ -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";