[ https://issues.apache.org/jira/browse/HDFS-1869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032666#comment-13032666 ]
Daryn Sharp commented on HDFS-1869: ----------------------------------- Ok, test will be added. I haven't tested on *BSD due to easy access, but I have tested on Darwin. However, the bsd man page for mkdir states: bq. -p Create intermediate directories as required. If this option is not specified, the full path prefix of each operand must already exist. On the other hand, with this option specified, no error will be reported if a directory given as an operand already exists. *Intermediate directories are created with permission bits of rwxrwxrwx (0777) as modified by the current umask*, plus write and search permission for the owner. Will double check that write and search are indeed implicitly added. > mkdirs should use the supplied permission for all of the created directories > ---------------------------------------------------------------------------- > > Key: HDFS-1869 > URL: https://issues.apache.org/jira/browse/HDFS-1869 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.23.0 > Reporter: Daryn Sharp > Assignee: Daryn Sharp > Attachments: HDFS-1869.patch > > > Mkdirs only uses the supplied FsPermission for the last directory of the > path. Paths 0..N-1 will all inherit the parent dir's permissions -even if- > inheritPermission is false. This is a regression from somewhere around > 0.20.9 and does not follow posix semantics. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira