[
https://issues.apache.org/jira/browse/HADOOP-10945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14642368#comment-14642368
]
Akira AJISAKA commented on HADOOP-10945:
----------------------------------------
Thanks [~lichangleo] for taking this issue.
{code}
- Pattern.compile("^\\s*[+]?()([0-7]{3})\\s*$"); // no leading 1 for sticky
bit
+ Pattern.compile("^\\s*[+]?([0]*)([0-7]{3})\\s*$"); // no leading 1 for
sticky bit
{code}
{{\[0\]*}} can pass an argument which is more than 4-digit (ex. 00022 or
000022). Would you use {{0?}} instead?
> 4-digit octal umask permissions throws a parse error
> ----------------------------------------------------
>
> Key: HADOOP-10945
> URL: https://issues.apache.org/jira/browse/HADOOP-10945
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 2.2.0
> Reporter: Jason Lowe
> Assignee: Chang Li
> Attachments: HADOOP-10945.patch
>
>
> Providing a 4-digit octal number for fs permissions leads to a parse error,
> e.g.: -Dfs.permissions.umask-mode=0022
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)