Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ private Path getStorageDir() throws IOException {
private Path createStorageDir() throws IOException {
Path root = getStorageDir();
FileSystem fs = FileSystem.getLocal(getConfig());
fs.mkdirs(root, new FsPermission((short)0700));
FsPermission perm = new FsPermission((short)0700);
fs.mkdirs(root, perm);
if (!perm.equals(perm.applyUMask(FsPermission.getUMask(getConfig())))) {
fs.setPermission(root, perm);
}
return root;
}

Expand Down