From 82c3c66dcb3d899e8ac91a5dbd3347c49a607682 Mon Sep 17 00:00:00 2001 From: Lei Xu Date: Tue, 12 Jul 2016 16:49:32 -0700 Subject: [PATCH] HADOOP-13315. FileContext#umask is not initialized properly. (John Zhuge via lei) (cherry picked from commit a290a98b6ab2424ae9b7faab0ce9496d09ca46f3) --- .../src/main/java/org/apache/hadoop/fs/FileContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java index 896eb39ee3c..568bf04ce16 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java @@ -238,7 +238,7 @@ public class FileContext { private FileContext(final AbstractFileSystem defFs, final FsPermission theUmask, final Configuration aConf) { defaultFS = defFs; - umask = FsPermission.getUMask(aConf); + umask = theUmask; conf = aConf; tracer = FsTracer.get(aConf); try {